當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Opportunity::specswap方法代碼示例

本文整理匯總了PHP中Opportunity::specswap方法的典型用法代碼示例。如果您正苦於以下問題:PHP Opportunity::specswap方法的具體用法?PHP Opportunity::specswap怎麽用?PHP Opportunity::specswap使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Opportunity的用法示例。


在下文中一共展示了Opportunity::specswap方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: elseif

         }
         if ($_POST['submit2'] || $_POST['submit3']) {
             //$redir = '1; URL=specific.php?oid='.$ooid;
             $redir = "specificadmin.php?oid={$ooid}&acct={$uacct}&cid={$usid}&mas={$masid}";
             //$mesg = "Saving your opportunity, please wait a moment... If automatic redirection would not work, please <a href=\"specific.php?oid=$ooid\">click here to proceed</a>.";
         }
     } elseif (is_numeric($_POST['o_location']) && $_POST['spec'] && $_POST['spec'] != '---') {
         // no ooid = assume it was the create opp form
         // o_name, o_location, spec
         $opp = new Opportunity($db, 0, $_POST['o_location'], $usid, $uacct);
         $opp->o_name = $_POST['o_name'];
         $opp->specialty = $_POST['spec'];
         //$opp->save();
         $db->query("update opportunities set specialty = '{$opp->spec}', o_name = " . chknul(addslashes($opp->o_name)) . " where oid = {$opp->oid}");
         $ooid = $opp->oid;
         $opp->specswap();
     }
 }
 // no master override yet, may be later
 if (!$ooid) {
     // list all what we have here
     if ($oopdate === "yes") {
         $sql = "update opportunities set o_datemod=now(), avail_date=now() where status= 1 and o_uid = {$usid}";
         $result = $db->query($sql);
         // ignore result
         $mesg = $db->affected_rows ? 'Jobs were refreshed successfully' : 'Nothing to Refresh';
         if (!$result) {
             throw new Exception(DEBUG ? "{$db->error}: {$sql}" : 'Can not refresh opportunities', __LINE__);
         }
     }
     if ($_GET["sort"] != '') {
開發者ID:nathan-turner,項目名稱:fuzionadmin,代碼行數:31,代碼來源:opportunadmin.php


注:本文中的Opportunity::specswap方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。