Changeset 663
- Timestamp:
- 10/15/09 12:43:58 (3 years ago)
- Location:
- trunk/phpbms
- Files:
-
- 4 modified
-
install/tableoptions.sql (modified) (1 diff)
-
install/updatev0.98.sql (modified) (1 diff)
-
modules/base/include/scheduler.php (modified) (2 diffs)
-
modules/base/scheduler_addedit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/install/tableoptions.sql
r613 r663 49 49 INSERT INTO `tableoptions` (`tabledefid`, `name`, `option`, `needselect`, `othercommand`, `roleid`, `displayorder`) VALUES ('tbld:83de284b-ef79-3567-145c-30ca38b40796', 'edit', '1', '1', '0', '', '0'); 50 50 INSERT INTO `tableoptions` (`tabledefid`, `name`, `option`, `needselect`, `othercommand`, `roleid`, `displayorder`) VALUES ('tbld:83de284b-ef79-3567-145c-30ca38b40796', 'inactivate', 'inactivate', '1', '1', '', '0'); 51 INSERT INTO `tableoptions` (`tabledefid`, `name`, `option`, `needselect`, `othercommand`, `roleid`, `displayorder`) VALUES ('tbld:83de284b-ef79-3567-145c-30ca38b40796', 'runSelected', 'run job(s)', '1', '1', '', '0');52 51 INSERT INTO `tableoptions` (`tabledefid`, `name`, `option`, `needselect`, `othercommand`, `roleid`, `displayorder`) VALUES ('tbld:83de284b-ef79-3567-145c-30ca38b40796', 'import', '0', '0', '0', 'Admin', '0'); 53 52 INSERT INTO `tableoptions` (`tabledefid`, `name`, `option`, `needselect`, `othercommand`, `roleid`, `displayorder`) VALUES ('tbld:87b9fe06-afe5-d9c6-0fa0-4a0f2ec4ee8a', 'new', '1', '0', '0', '', '0'); -
trunk/phpbms/install/updatev0.98.sql
r649 r663 451 451 INSERT INTO `tablegroupings` (`tabledefid`, `field`, `displayorder`, `ascending`, `name`, `roleid`) VALUES ('tbld:83187e3d-101e-a8a5-037f-31e9800fed2d', 'if(menu.parentid=\'\' OR menu.parentid IS NULL,concat( lpad(menu.displayorder,3,\"0\"), \" - \" ,menu.name ) , concat( lpad(parentmenu.displayorder,3,\"0\") , \" - \",parentmenu.name))', '1', '1', '', ''); 452 452 --end tablegroupings INSERT-- 453 --tableoptions DELETE-- 454 DELETE FROM `tableoptions` WHERE `name` = 'runSelected' AND `tabledefid` = '201' AND `option` = 'run job(s)'; 455 --end tableoptions DELETE-- 453 456 --tableoptions INSERT-- 454 457 INSERT INTO `tableoptions` (`tabledefid`, `name`, `option`, `needselect`, `othercommand`, `roleid`, `displayorder`) VALUES ('tbld:0fcca651-6c34-c74d-ac04-2d88f602dd71', 'import', '0', '0', '0', 'Admin', '0'); -
trunk/phpbms/modules/base/include/scheduler.php
r645 r663 38 38 */ 39 39 if(class_exists("phpbmsTable")){ 40 class scheduler sextends phpbmsTable{40 class scheduler extends phpbmsTable{ 41 41 42 42 function getDefaults(){ … … 169 169 }//end class 170 170 }//end if 171 172 if(class_exists("searchFunctions")){ 173 class schedulerSearchFunctions extends searchFunctions{ 174 175 function inactivate($useUUID = false){ 176 177 if(!$useUUID) 178 $whereclause = $this->buildWhereClause(); 179 else 180 $whereclause = $this->buildWhereClause($this->maintable.".uuid"); 181 182 $updatestatement = " 183 UPDATE 184 `scheduler` 185 SET 186 `inactive` = '1' 187 WHERE 188 ".$whereclause." 189 "; 190 191 $updateresult = $this->db->query($updatestatement); 192 193 $message = $this->buildStatusMessage(); 194 $message.=" inactivated"; 195 return $message; 196 197 }//end function 198 199 }//end class 200 }//end if 171 201 ?> -
trunk/phpbms/modules/base/scheduler_addedit.php
r645 r663 43 43 include("include/scheduler.php"); 44 44 45 $thetable = new scheduler s($db,"tbld:83de284b-ef79-3567-145c-30ca38b40796");45 $thetable = new scheduler($db,"tbld:83de284b-ef79-3567-145c-30ca38b40796"); 46 46 $therecord = $thetable->processAddEditPage(); 47 47