当前位置: 首页>>代码示例>>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;未经允许,请勿转载。