• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP getFieldValue函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中getFieldValue函数的典型用法代码示例。如果您正苦于以下问题:PHP getFieldValue函数的具体用法?PHP getFieldValue怎么用?PHP getFieldValue使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getFieldValue函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: generateCouponCode

function generateCouponCode()
{
    $code = "UNI" . substr(date("Y"), 2, 2) . date("m") . date("d") . date("his");
    $code .= mt_rand(11111, 99999);
    $codeExist = getFieldValue("code", "coupon", "WHERE code='" . $code . "'");
    if (empty($codeExist)) {
        return $code;
    } else {
        generateCouponCode();
    }
}
开发者ID:akhtar-husain,项目名称:coupon,代码行数:11,代码来源:config.php


示例2: sendMail

function sendMail()
{
    $to = getFieldValue('email');
    $subject = 'Notification: Your bio was just updated';
    $message = 'Your bio was updated on ' . date('o-m-d') . ' at ' . date('H:m:s') . "\r\n";
    $message .= 'First Name: ' . getFieldValue('firstName') . "\r\n";
    $message .= 'Last Name: ' . getFieldValue('lastName') . "\r\n";
    $message .= 'Age: ' . getFieldValue('age') . "\r\n";
    $message .= 'Email: ' . $to . "\r\n";
    $message .= 'Short Bio: ' . getFieldValue('shortBio') . "\r\n";
    $message = wordwrap($message, 70);
    $headers = array('From: ' . MY_EMAIL, 'X-Priority: 1 (highest)');
    $headers = implode("\r\n", $headers);
    var_dump('$to:' . $to);
    var_dump('$subject:' . $subject);
    var_dump('$message:' . $message);
    var_dump('$headers:' . $headers);
    // email does not work in windows!
    $boolResult = mail($to, $subject, $message, $headers);
    var_dump($boolResult);
    return $boolResult;
}
开发者ID:hoiwanjohnlouis,项目名称:eclipsePrototyping,代码行数:22,代码来源:helper_functions.php


示例3: getMenuAndStatus


//.........这里部分代码省略.........
				if($user->avatar!='' && $user->avatar!=null) {
					$mi = array(); $mi["_UE_MENU_EDIT"]["_UE_DELETE_AVATAR"]=null;
					$this->_addMenuItem( $mi, $menuTexts['_UE_DELETE_AVATAR'],cbSef($ue_deleteavatar_url), "",
					"<img src=\"".$adminimagesdir."delavatar.gif\" alt='' />","", $menuTexts['_UE_MENU_DELETE_AVATAR_DESC'],"" );
				}
			}
		}
		// ----- VIEW MENU - AFTER EDIT IF VIEWING A PROFILE -----
		if ( $_CB_framework->myId() > 0 ) {
			// View My Profile:
			if ( ( $_CB_framework->myId() != $user->id ) && ( $_CB_framework->displayedUser() !== null ) ) {
				$mi = array(); $mi["_UE_MENU_VIEW"]["_UE_MENU_VIEWMYPROFILE"]=null;
				$this->_addMenuItem( $mi, _UE_MENU_VIEWMYPROFILE,cbSef($ue_userprofile_url), "",
				"","", _UE_MENU_VIEWMYPROFILE_DESC,"" );
			}
		}
		// ----- MESSAGES MENU -----
		// Send PMS
		if ( $_CB_framework->myId() != $user->id && $_CB_framework->myId() > 0 ) {
			global $_CB_PMS;
			$resultArray = $_CB_PMS->getPMSlinks($user->id, $_CB_framework->myId(), "", "", 1);
			if (count($resultArray) > 0) {
				foreach ($resultArray as $res) {
				 	if (is_array($res)) {
						$mi = array(); $mi["_UE_MENU_MESSAGES"][$res["caption"]]=null;
						$this->_addMenuItem( $mi, getLangDefinition($res["caption"]),cbSef($res["url"]), "",
						"","", getLangDefinition($res["tooltip"]),"" );
				 	}
				}
			}
		}

		// Send Email
		$emailHtml=getFieldValue('primaryemailaddress',$user->email,$user);
		if ($ueConfig['allow_email_display']!=4 && $_CB_framework->myId() != $user->id && $_CB_framework->myId() > 0) {
			switch ($ueConfig['allow_email_display']) {
				case 1:	// Display Email only
					$caption = $emailHtml;
					$url = "javascript:void(0);";
					$desc = _UE_MENU_USEREMAIL_DESC;
					break;
				case 2:	// Display Email with link:
					$caption = null;
					$url = $emailHtml;
					$desc = _UE_MENU_SENDUSEREMAIL_DESC;
					break;
				case 3:	// Display Email-to text with link to web-form:
					$caption = _UE_MENU_SENDUSEREMAIL;
					$url = $emailHtml;
					$desc = _UE_MENU_SENDUSEREMAIL_DESC;
					break;
			}
			$mi = array(); $mi["_UE_MENU_MESSAGES"]["_UE_MENU_SENDUSEREMAIL"]=null;
			$this->_addMenuItem( $mi, $caption, $url, "", "", "", $desc, "" );
		}
		// ----- CONNECTIONS MENU -----
		IF ($ueConfig['allowConnections'] && $_CB_framework->myId() > 0) {
			$ue_addConnection_url = $ue_base_url."&amp;act=connections&amp;task=addConnection&amp;connectionid=".$user->id;
			$ue_removeConnection_url = $ue_base_url."&amp;act=connections&amp;task=removeConnection&amp;connectionid=".$user->id;
			$ue_manageConnection_url = $ue_base_url."&amp;task=manageConnections";
			
			// Manage My Connections
			$mi = array(); $mi["_UE_MENU_CONNECTIONS"]["_UE_MENU_MANAGEMYCONNECTIONS"]=null;
			$this->_addMenuItem( $mi, _UE_MENU_MANAGEMYCONNECTIONS,cbSef($ue_manageConnection_url), "",
			"","", _UE_MENU_MANAGEMYCONNECTIONS_DESC,"" );
			
开发者ID:rkern21,项目名称:videoeditor,代码行数:66,代码来源:cb.menu.php


示例4: array_unique

        $records_eventreports['order'] = array_unique($records_eventreports['order']);
    }
    if (count($records_eventreports['records']) > 0) {
        foreach ($records_eventreports['order'] as $repID) {
            //getFieldValue($records_eventreports, $repID, DT_ORIGINAL_RECORD_ID)
            //find DA Report name
            $da_report = '';
            $da_repID = getFieldValue($records_eventreports, $repID, DT_REPORT_DALINK);
            if ($da_repID > 0) {
                $da_report = recordSearch_2('ids:' . $da_repID);
                $da_report = getFieldValue($da_report, 0, DT_NAME);
            }
            ?>
                                <li>
                                    (#<?php 
            echo $repID . ')&nbsp;<em>' . getFieldValue($records_eventreports, $repID, 'rec_Title') . '</em>. [' . getFieldValue($records_eventreports, $repID, DT_DATE) . ']. ' . getTermById(getFieldValue($records_eventreports, $repID, DT_REPORT_SOURCE_TYPE)) . '&nbsp' . $da_report . ' ' . getFieldValue($records_eventreports, $repID, DT_REPORT_CITATION);
            ?>
                                </li>
                                <?php 
        }
    } else {
        echo '<li>None recorded</li>';
    }
    ?>
                    </ul>
                </p>

            </div>

        </body></html>
开发者ID:HeuristNetwork,项目名称:heurist,代码行数:30,代码来源:dh_popup_place.php


示例5: update_cateCount

         $sql = "update " . $DBPrefix . "logs set cateId='" . $_POST['move_category'] . "' where {$stritem}";
         $DMC->query($sql);
         update_cateCount($_POST['move_category'], "adding", count($itemlist));
     }
     //更新Cache
     categories_recache();
     recentLogs_recache();
     logsTitle_recache();
     logs_sidebar_recache($arrSideModule);
 }
 //自动截取
 if ($_POST['operation'] == "addautoSplit" and $stritem != "") {
     $autoSplit = $_POST['addautoSplit'];
     for ($i = 0; $i < count($itemlist); $i++) {
         $mark_id = $itemlist[$i];
         $logContent = getFieldValue($DBPrefix . "logs", " id='{$mark_id}'", "logContent");
         //如果日志包含了特殊标签,则不自载截取
         if (strpos(";" . $logContent, "<!--more-->") > 0) {
             $autoSplit = 0;
         }
         if (strpos(";" . $logContent, "<!--nextpage-->") > 0) {
             $autoSplit = 0;
         }
         if (strpos(";" . $logContent, "<!--hideBegin-->") > 0) {
             $autoSplit = 0;
         }
         if (strpos(";" . $logContent, "<!--galleryBegin-->") > 0) {
             $autoSplit = 0;
         }
         //if (strpos(";".$logContent,"<!--fileBegin-->")>0) $autoSplit=0;
         //if (strpos(";".$logContent,"<!--mfileBegin-->")>0) $autoSplit=0;
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:logs.php


示例6: explode

             $tsize = explode('x', strtolower($settingInfo['thumbSize']));
             if ($fileWidth > $tsize[0] || $fileHeight > $tsize[1]) {
                 $attach_thumb = array('filepath' => "../attachments/" . $value, 'filename' => $attachment, 'extension' => $fileType, 'thumbswidth' => $tsize[0], 'thumbsheight' => $tsize[1]);
                 $thumb_data = generate_thumbnail($attach_thumb);
                 $fileWidth = $thumb_data['thumbwidth'];
                 $fileHeight = $thumb_data['thumbheight'];
                 $thumbfile = $thumb_data['thumbfilepath'];
                 $value = str_replace("../attachments/", "", $thumbfile);
             }
         }
     } else {
         $thumbfile = "";
     }
     //写进数据库
     $fileName = $attdesc == "" ? $fileName : encode($attdesc) . "." . $fileType;
     $rsexits = getFieldValue($DBPrefix . "attachments", "attTitle='" . $fileName . "' and fileType='" . $updateStyle . "' and fileSize='" . $fileSize . "' and logId='0'", "name");
     if ($rsexits == "") {
         $sql = "INSERT INTO " . $DBPrefix . "attachments(name,attTitle,fileType,fileSize,fileWidth,fileHeight,postTime,logId) VALUES ('{$value}','{$fileName}','{$updateStyle}','{$fileSize}','{$fileWidth}','{$fileHeight}','" . time() . "',0)";
         $DMC->query($sql);
     } else {
         print_message($strDataExists);
     }
     do_filter("f2_attach", $basefile);
     if (!empty($thumbfile)) {
         do_filter("f2_attach", $thumbfile);
         //縮略圖
     }
     settings_recount("attachments");
     settings_recache();
     $action = "";
 }
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:attach.php


示例7: getFieldValue

    }
    if ($check_info == 1) {
        if ($mark_id != "") {
            //编辑
            $rsexits = getFieldValue($DBPrefix . "filters", "name='" . encode($_POST['name']) . "' and category='" . $_POST['category'] . "'", "id");
            if ($rsexits != $mark_id && $rsexits != "") {
                $ActionMessage = "{$strDataExists}";
                $action = "edit";
            } else {
                $sql = "update " . $DBPrefix . "filters set name='" . encode($_POST['name']) . "',category='" . $_POST['category'] . "' where id='{$mark_id}'";
                $DMC->query($sql);
                $action = "";
            }
        } else {
            //新增
            $rsexits = getFieldValue($DBPrefix . "filters", "name='" . encode($_POST['name']) . "' and category='" . $_POST['category'] . "'", "id");
            if ($rsexits != "") {
                $ActionMessage = "{$strDataExists}";
                $action = "add";
            } else {
                $sql = "INSERT INTO " . $DBPrefix . "filters(name,category) VALUES ('" . encode($_POST['name']) . "','" . $_POST['category'] . "')";
                $DMC->query($sql);
                $action = "";
            }
        }
        if ($action == "") {
            filters_recache();
        }
    }
}
//其它操作行为:编辑、删除等
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:filters.php


示例8: foreach

echo 'END$$<br/>DELIMITER ;';
echo '<br/><br/>';
/* Update Proc */
$tab = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp';
echo 'USE `' . Config::$database . '`;<br/>';
echo 'DROP procedure IF EXISTS `update' . $class->getName() . '`;<br/><br/>';
echo 'DELIMITER $$<br/>';
echo 'USE `' . Config::$database . '`$$<br/><br/>';
echo 'CREATE PROCEDURE update' . $class->getName() . '(_id int';
$fieldarray = $class->getFields();
$separator = ", ";
foreach ($fieldarray as $field) {
    if ($field[1] != "linkedentities" && $field[1] != "childentities") {
        echo $separator . $field[0] . ' ';
    }
    echo getFieldValue($field);
}
echo ", _tenantid int";
if ($class->hasOwner()) {
    echo ', _userid int';
}
echo ")<br/>";
echo 'BEGIN<br/>';
echo '<br/>';
echo $tab . 'UPDATE ' . lcfirst($class->getName()) . ' SET<br/>';
$separator = $tab . $tab;
foreach ($fieldarray as $field) {
    if ($field[1] != "linkedentities" && $field[1] != "childentities") {
        echo $separator . $field[0] . ' = ' . $field[0];
        $separator = ',<br/>' . $tab . $tab;
    }
开发者ID:robertmoss,项目名称:foodfinder_main,代码行数:31,代码来源:generateSQL.php


示例9: foreach

?>
 </td>
  </tr>
  <tr>
    <td align="left"><img src="images/line2.gif"></td>
  </tr>
  <tr>
    <td align="left" height="5"></td>
  </tr>
<?php 
$j = 1;
foreach ($headHunters as $rec_id => $shortlist_count) {
    if ($j > 4) {
        break;
    }
    $logo = getFieldValue("job_recruiter", "comp_logo", "rec_id", $rec_id);
    $img_exist = 0;
    $directory = "recruiter/logos/";
    $handle = opendir($directory);
    while (FALSE !== ($item = readdir($handle))) {
        if ($item == $logo) {
            $img_exist = 1;
        }
    }
    if ($img_exist == 1) {
        ?>
  <tr>
    <td align="left" height="82"><img src="recruiter/logos/<?php 
        echo $logo;
        ?>
" ></td>
开发者ID:beyondkeysystem,项目名称:testone,代码行数:31,代码来源:right.php


示例10: call_user_func

        $ActionMessage = call_user_func($plugin . "_unstall");
        if ($ActionMessage == "") {
            $ActionMessage = "{$strf2Plugins} <b>{$plugin}</b> {$strUnActive}{$strSuccess}!";
            modules_recache();
            modulesSetting_recache();
        } else {
            $ActionMessage = "{$strf2Plugins} <b>{$plugin}: </b>" . $ActionMessage;
        }
    }
    $action = "";
}
if ($action == "setSave") {
    $plugin = basename($_GET['plugin']);
    $title = "{$strf2Plugins} <b>{$plugin}</b> {$strPluginSetting}";
    include_once F2BLOG_ROOT . "plugins/{$plugin}/setting.php";
    $modId = getFieldValue($DBPrefix . "modules", "name='{$plugin}'", "id");
    $ActionMessage = call_user_func_array($plugin . "_setSave", array($_POST, $modId));
    if ($ActionMessage == "") {
        $ActionMessage = "{$strf2Plugins} <b>{$plugin}</b> {$strPluginSetting}{$strSuccess}!";
        modulesSetting_recache();
    } else {
        $ActionMessage = "{$strf2Plugins} <b>{$plugin}: </b>" . $ActionMessage;
    }
    //Redirect setting
    $action = "set";
}
if ($action == "set") {
    $plugin = basename($_GET['plugin']);
    $title = "{$strf2Plugins} {$plugin} {$strPluginSetting}";
    $arr = getModSet($plugin);
    include_once "../plugins/{$plugin}/setting.php";
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:plugins.php


示例11: addCategory

function addCategory($name)
{
    global $DMC, $DBPrefix;
    $orderno = getFieldValue($DBPrefix . "categories", "parent='0' order by orderNo desc", "orderNo");
    if ($orderno < 1) {
        $orderno = 1;
    } else {
        $orderno++;
    }
    $sql = "INSERT INTO {$DBPrefix}categories(parent,name,orderNo,isHidden,cateIcons) VALUES ('0','{$name}','{$orderno}','0','1')";
    $DMC->query($sql);
    return $DMC->insertId();
}
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:13,代码来源:rss_import.php


示例12: urlencode

    $seektype = "";
}
$seek_url = "{$PHP_SELF}?order={$order}";
//查找用链接
$edit_url = "{$PHP_SELF}?basedir=" . urlencode($basedir) . "&seekname={$seekname}&seektype={$seektype}";
//编辑或新增链接
if ($action == "add") {
    //新增。
    $title = "{$strAttachmentsTitleAdd}";
    include "attachments_add.inc.php";
} else {
    if ($action == "edit" && $_GET['file_id'] != "") {
        //修改文件名。
        $title = "{$strAttachmentsTitleEdit}";
        $file_id = $_GET['file_id'];
        $file_title = getFieldValue($DBPrefix . "attachments", "where name like '%" . $file_id . "'", "attTitle");
        if ($file_title != "") {
            $file_title = substr($file_title, 0, strrpos($file_title, "."));
        }
        include "attachments_edit.inc.php";
    } else {
        //查找和浏览
        $title = "{$strAttachmentsTitle}";
        $handle = opendir("{$basedir}");
        while ($file = readdir($handle)) {
            if (is_file($basedir . $file)) {
                $filetype = getFileType($file);
                if ($seektype != "") {
                    if (strpos(";{$seektype}", $filetype) > 0) {
                        $filelist[] = $file;
                    }
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:attachments.php


示例13: getFieldValue

                 }
                 $orderSQL = ",orderNo='{$orderno}'";
             }
             $sql = "update " . $DBPrefix . "modules set name='{$name}',modTitle=\"{$modTitle}\",disType='{$disType}',isHidden='{$isHidden}',indexOnly='{$indexOnly}',htmlCode=\"{$htmlCode}\",pluginPath='{$pluginPath}',isInstall='{$isInstall}'{$orderSQL} where id='{$mark_id}'";
             $DMC->query($sql);
             $ActionMessage = $strSaveSuccess;
             $action = "";
         }
     } else {
         //新增
         $rsexits = getFieldValue($DBPrefix . "modules", "name='{$name}' and disType='{$disType}'", "id");
         if ($rsexits != "") {
             $ActionMessage = "{$strDataExists}";
             $action = "add";
         } else {
             $orderno = getFieldValue($DBPrefix . "modules", "disType='{$disType}' order by orderNo desc", "orderNo");
             if ($orderno < 1) {
                 $orderno = 1;
             } else {
                 $orderno++;
             }
             $sql = "INSERT INTO " . $DBPrefix . "modules(name,modTitle,disType,isHidden,indexOnly,orderNo,htmlCode,pluginPath,isInstall) VALUES ('{$name}',\"{$modTitle}\",'{$disType}','{$isHidden}','{$indexOnly}','{$orderno}',\"{$htmlCode}\",'{$pluginPath}','{$isInstall}')";
             $DMC->query($sql);
             $ActionMessage = $strSaveSuccess;
             $action = "";
         }
     }
     if ($action == "") {
         modules_recache();
     }
 } else {
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:modules.php


示例14: safe_convert

     //检测验证码
     if (!empty($_POST['validate'])) {
         $_POST['validate'] = safe_convert($_POST['validate']);
     }
     if ($check_info == 1 && (empty($_POST['validate']) || $_POST['validate'] != $_SESSION['backValidate']) && $settingInfo['isValidateCode'] == 1) {
         $ActionMessage = $strGuestBookValidError;
         $check_info = 0;
     } else {
         $_SESSION['backValidate'] = "";
         //把验证码清除
     }
     if ($check_info == 1) {
         $blogName = safe_convert(strip_tags($_POST['blogName']));
         $blogUrl = safe_convert(strip_tags($_POST['blogUrl']));
         $blogLogo = safe_convert(strip_tags($_POST['blogLogo']));
         $rsexits = getFieldValue($DBPrefix . "links", "name='{$blogName}' or blogUrl='{$blogUrl}'", "id");
         if ($rsexits != "") {
             $ActionMessage = $strDataExists;
         } else {
             $sql = "INSERT INTO " . $DBPrefix . "links(name,blogUrl,blogLogo) VALUES ('{$blogName}','{$blogUrl}','{$blogLogo}')";
             $DMC->query($sql);
             $ActionMessage = "{$strApplyWaitApprove}";
             $blogName = $blogUrl = $blogLogo = "";
         }
     }
 }
 if (preg_match("/http:\\/\\//is", $settingInfo['linklogo'])) {
     $logopath = $settingInfo['linklogo'];
 } else {
     $logopath = $settingInfo['blogUrl'] . $settingInfo['linklogo'];
 }
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:applylink.inc.php


示例15: getFieldValue

</td>
                                    </tr>
                                    <?php 
    }
    ?>
                                    <tr>
                                      <td>Country</td>
                                      <td align="left"><?php 
    echo getFieldValue("job_country", "country_name", "country_id", $rsRec->rec_country);
    ?>
</td>
                                    </tr>
                                    <tr>
                                      <td>Province/State</td>
                                      <td align="left"><?php 
    echo getFieldValue("job_state", "state_name", "state_id", $rsRec->rec_state);
    ?>
                                      </td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td height="10"></td>
                              </tr>
                              <tr>
                                <td class="subhead_gray_small" >Contact Information</td>
                              </tr>
                              <tr>
                                <td><img src="../images/line.gif" width="772"></td>
                              </tr>
                              <tr>
开发者ID:beyondkeysystem,项目名称:testone,代码行数:31,代码来源:view_profile.php


示例16: getFieldValue

        $DMC->query($sql);
    }
    //添加到某组
    if ($_POST['operation'] == "move" and $stritem != "") {
        $orderno = getFieldValue($DBPrefix . "links", " lnkGrpId='" . $_POST['move_group'] . "' order by orderNo desc", "orderNo");
        if ($orderno < 1) {
            $orderno = 1;
        } else {
            $orderno++;
        }
        $sql = "update " . $DBPrefix . "links set lnkGrpId='" . $_POST['move_group'] . "',isApp='1',isSidebar='1',orderno='{$orderno}' where {$stritem}";
        $DMC->query($sql);
    }
    //添加到某组并为文本链接
    if ($_POST['operation'] == "movetext" and $stritem != "") {
        $orderno = getFieldValue($DBPrefix . "links", " lnkGrpId='" . $_POST['move_group2'] . "' order by orderNo desc", "orderNo");
        if ($orderno < 1) {
            $orderno = 1;
        } else {
            $orderno++;
        }
        $sql = "update " . $DBPrefix . "links set lnkGrpId='" . $_POST['move_group2'] . "',isApp='1',blogLogo='',isSidebar='1',orderno='{$orderno}' where {$stritem}";
        $DMC->query($sql);
    }
    if ($_POST['operation'] == "move" || $_POST['operation'] == "movetext") {
        do_action("f2_link");
        links_recache();
        logs_sidebar_recache($arrSideModule);
    }
}
$page_url = "{$PHP_SELF}?seekname={$seekname}&order={$order}";
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:linkapp.php


示例17: sendMailseekerrate

function sendMailseekerrate($seekerid, $recid)
{
    $objDb = new db();
    $sqlJob = "select seeker_name,seeker_surname,seeker_email from job_jobseeker where seeker_id='" . $seekerid . "'";
    $resultJob = $objDb->ExecuteQuery($sqlJob);
    $rsJob = mysql_fetch_object($resultJob);
    //print_r($rsJob);
    $sqlComp = "select rec_email,rec_name,comp_name from job_recruiter where rec_id='" . $recid . "'";
    $resultComp = $objDb->ExecuteQuery($sqlComp);
    $rsComp = mysql_fetch_object($resultComp);
    //print_r($row);
    $adminemail = getFieldValue('job_user', 'user_email', 'user_id', 1);
    $str = '<style type="text/css" type="text/css">
			.sectionheading
			{
				font-family: Arial, Helvetica, sans-serif;
				font-size:20px;
				font-weight:normal;
				color: #329900;
				text-decoration: none;
			}
			.table_alternate_row_noboder
			{
				font-family:Arial, Helvetica, sans-serif;
				font-size:12px;
				background-color:#E6E6E6;
				color: #333333;
				text-decoration:none;
			}
			.subhead_gray_small
			{
				font-family:  Arial, Helvetica, sans-serif;
				font-size:13px;
				font-weight:bold;
				color: #333333;
				text-decoration:none;
			}	
			.normal
			{
				font-family:  Arial, Helvetica, sans-serif;
				font-size: 13px;
				font-style:normal;
				color: #000000;
				text-decoration:none;
			}				
		</style>
		<table width="100%" cellpadding="6" cellspacing="0" class="normal">
		
			<tr>
				<td colspan="3"><a href="#Logo"><img alt="Image Not Found" src="images/logonew.png""></a></td>
			</tr>
			<tr>
				<td class="sectionheading" colspan="3">&nbsp;&nbsp;' . $rsComp->comp_name . ' Company has Rated on your Resume</td>
			</tr>
			<tr>
				<td>&nbsp;&nbsp;Company Name: <span class="subhead_gray_small">' . $rsComp->comp_name . '</span><br>		
				</td>
				<td>&nbsp;&nbsp;Recruiters Name: <span class="subhead_gray_small">' . $rsComp->rec_name . '</span><br>	
				</td>
				<td>&nbsp;&nbsp;View Date: <span class="subhead_gray_small">' . date('d-m-Y') . '</span><br>	
				</td>
			</tr>						
			<tr>
				<td colspan="3" class="sectionheading">&nbsp;&nbsp;</td>
			</tr>';
    $str .= '</table>';
    $from = "NamRecruit <[email protected]>";
    $subject = "Dear" . $rsJob->seeker_name . "a new company rated on your resume";
    $headers = "From: {$from}\nContent-Type: text/html; charset=iso-8859-1";
    @mail(trim($from), $subject, $str, $headers);
}
开发者ID:beyondkeysystem,项目名称:testone,代码行数:71,代码来源:functions1.php


示例18: getFieldValue

echo getFieldValue($arrSalary, 'income_tax');
?>
"/>
            </div>

            <div class="form-group">
                <label for="net_salary"> Net Salary</label>
                <input type="text" name="net_salary" class="form-control" id="net_salary" readonly value="<?php 
echo getFieldValue($arrSalary, 'net_salary');
?>
"/>
            </div>
            <div class="form-group">
                <label for="grade">Grade</label>
                <input type="text" name="grade" class="form-control" id="grade" value="<?php 
echo getFieldValue($arrSalary, 'grade');
?>
"/>
            </div>

            <div class="form-group">
                <input type="submit" class="btn btn-success btn-lg" value="<?php 
getButtonText($type, 'salary');
?>
"/>
                <a href="/salaries" class="btn  btn-danger btn-lg"> Cancel </a>
            </div>
        </form>
    </div>
</div>
开发者ID:awlad,项目名称:raw-test,代码行数:30,代码来源:form.php


示例19: encode

     if ($rsexits != $mark_id && $rsexits != "") {
         $ActionMessage = "{$strDataExists}";
         $action = "edit";
     } else {
         $sql = "update " . $DBPrefix . "links set name='" . encode($lnkName) . "',blogUrl='" . encode($lnkUrl) . "',blogLogo='" . encode($lnkLogo) . "',isSidebar='{$isSidebar}',lnkGrpId='{$lnkGrpId}',isApp='1' where id='{$mark_id}'";
         $DMC->query($sql);
         $action = "";
     }
 } else {
     //新增
     $rsexits = getFieldValue($DBPrefix . "links", "name='" . encode($lnkName) . "' and blogUrl='" . encode($lnkUrl) . "'", "id");
     if ($rsexits != "") {
         $ActionMessage = "{$strDataExists}";
         $action = "add";
     } else {
         $orderno = getFieldValue($DBPrefix . "links", " order by orderNo desc", "orderNo");
         if ($orderno < 1) {
             $orderno = 1;
         } else {
             $orderno++;
         }
         $sql = "INSERT INTO " . $DBPrefix . "links(name,blogUrl,orderNo,blogLogo,isSidebar,lnkGrpId,isApp) VALUES ('" . encode($lnkName) . "','" . encode($lnkUrl) . "','{$orderno}','" . encode($lnkLogo) . "','{$isSidebar}','{$lnkGrpId}','1')";
         $DMC->query($sql);
         $action = "";
     }
 }
 if ($action == "") {
     do_action("f2_link");
     links_recache();
     logs_sidebar_recache($arrSideModule);
 }
开发者ID:BGCX067,项目名称:f2cont-svn-to-git,代码行数:31,代码来源:links.php


示例20: getDisplayTab

 /**
  * Generates the HTML to display the user profile tab
  * @param  moscomprofilerTab   $tab       the tab database entry
  * @param  moscomprofilerUser  $user      the user being displayed
  * @param  int                 $ui        1 for front-end, 2 for back-end
  * @return mixed                          either string HTML for tab content, or false if ErrorMSG generated
  */
 function getDisplayTab($tab, $user, $ui)
 {
     global $_CB_framework, $_CB_database, $ueConfig;
     $return = null;
     if (!$ueConfig['allowConnections'] || isset($ueConfig['connectionDisplay']) && $ueConfig['connectionDisplay'] == 1 && $_CB_framework->myId() != $user->id) {
         return null;
     }
     $params = $this->params;
     $con_ShowTitle = $params->get('con_ShowTitle', '1');
     $con_ShowSummary = $params->get('con_ShowSummary', '0');
     $con_SummaryEntries = $params->get('con_SummaryEntries', '4');
     $con_pagingenabled = $params->get('con_PagingEnabled', '1');
     $con_entriesperpage = $params->get('con_EntriesPerPage', '10');
     $pagingParams = $this->_getPaging(array(), array("connshow_"));
     $showall = $this->_getReqParam("showall", false);
     if ($con_ShowSummary && !$showall && $pagingParams["connshow_limitstart"] === null) {
         $summaryMode = true;
         $showpaging = false;
         $con_entriesperpage = $con_SummaryEntries;
     } else {
         $summaryMode = false;
         $showpaging = $con_pagingenabled;
     }
     $isVisitor = null;
     if ($_CB_framework->myId() != $user->id) {
         $isVisitor = "\n AND m.pending=0 AND m.accepted=1";
     }
     if ($showpaging || $summaryMode) {
         //select a count of all applicable entries for pagination
         if ($isVisitor) {
             $contotal = $this->_getUserNumberOfConnections($user);
         } else {
             $query = "SELECT COUNT(*)" . "\n FROM #__comprofiler_members AS m" . "\n LEFT JOIN #__comprofiler AS c ON m.memberid=c.id" . "\n LEFT JOIN #__users AS u ON m.memberid=u.id" . "\n WHERE m.referenceid=" . (int) $user->id . "\n AND c.approved=1 AND c.confirmed=1 AND c.banned=0 AND u.block=0" . $isVisitor . "\n ";
             $_CB_database->setQuery($query);
             $contotal = $_CB_database->loadResult();
             if (!is_numeric($contotal)) {
                 $contotal = 0;
             }
         }
     }
     if (!$showpaging || $pagingParams["connshow_limitstart"] === null || $con_entriesperpage > $contotal) {
         $pagingParams["connshow_limitstart"] = "0";
     }
     $query = "SELECT m.*,u.name,u.email,u.username,c.avatar,c.avatarapproved, u.id " . "\n FROM #__comprofiler_members AS m" . "\n LEFT JOIN #__comprofiler AS c ON m.memberid=c.id" . "\n LEFT JOIN #__users AS u ON m.memberid=u.id" . "\n WHERE m.referenceid=" . (int) $user->id . "" . "\n AND c.approved=1 AND c.confirmed=1 AND c.banned=0 AND u.block=0" . $isVisitor . "\n ORDER BY m.membersince DESC, m.memberid ASC";
     $_CB_database->setQuery($query, (int) ($pagingParams["connshow_limitstart"] ? $pagingParams["connshow_limitstart"] : 0), (int) $con_entriesperpage);
     $connections = $_CB_database->loadObjectList();
     if (!count($connections) > 0) {
         $return .= _UE_NOCONNECTIONS;
         return $return;
     }
     if ($con_ShowTitle) {
         if ($_CB_framework->myId() == $user->id) {
             $return .= "<h3 class=\"cbConTitle\">" . _UE_YOURCONNECTIONS . "</h3>";
         } else {
             $return .= "<h3 class=\"cbConTitle\">" . sprintf(_UE_USERSNCONNECTIONS, getNameFormat($user->name, $user->username, $ueConfig['name_format'])) . "</h3>";
         }
     }
     $return .= $this->_writeTabDescription($tab, $user);
     $live_site = $_CB_framework->getCfg('live_site');
     $boxHeight = $ueConfig['thumbHeight'] + 46;
     $boxWidth = $ueConfig['thumbWidth'] + 28;
     foreach ($connections as $connection) {
         $conAvatar = getFieldValue('image', $connection->avatar, $connection);
         $emailIMG = getFieldValue('primaryemailaddress', $connection->email, $connection, null, 1);
         $pmIMG = getFieldValue('pm', $connection->username, $connection, null, 1);
         $onlineIMG = $ueConfig['allow_onlinestatus'] == 1 ? getFieldValue('status', null, $connection, null, 1) : "";
         if ($connection->accepted == 1 && $connection->pending == 1) {
             $actionIMG = '<img src="' . $live_site . '/components/com_comprofiler/images/pending.png" border="0" alt="' . _UE_CONNECTIONPENDING . "\" title=\"" . _UE_CONNECTIONPENDING . "\" /> <a href=\"" . cbSef("index.php?option=com_comprofiler&amp;act=connections&amp;task=removeConnection&amp;connectionid=" . $connection->memberid) . "\" onclick=\"return confirmSubmit();\" ><img src=\"" . $live_site . "/components/com_comprofiler/images/publish_x.png\" border=\"0\" alt=\"" . _UE_REMOVECONNECTION . "\" title=\"" . _UE_REMOVECONNECTION . "\" /></a>";
         } elseif ($connection->accepted == 1 && $connection->pending == 0) {
             $actionIMG = "<a href=\"" . cbSef("index.php?option=com_comprofiler&amp;act=connections&amp;task=removeConnection&amp;connectionid=" . $connection->memberid) . "\" onclick=\"return confirmSubmit();\" ><img src=\"" . $live_site . "/components/com_comprofiler/images/publish_x.png\" border=\"0\" alt=\"" . _UE_REMOVECONNECTION . "\" title=\"" . _UE_REMOVECONNECTION . "\" /></a>";
         } elseif ($connection->accepted == 0) {
             $actionIMG = "<a href=\"" . cbSef("index.php?option=com_comprofiler&amp;act=connections&amp;task=acceptConnection&amp;connectionid=" . $connection->memberid) . '"><img src="' . $live_site . "/components/com_comprofiler/images/tick.png\" border=\"0\" alt=\"" . _UE_ACCEPTCONNECTION . "\" title=\"" . _UE_ACCEPTCONNECTION . "\" /></a> <a href=\"" . cbSef("index.php?option=com_comprofiler&amp;act=connections&amp;task=removeConnection&amp;connectionid=" . $connection->memberid) . '"><img src="' . $live_site . "/components/com_comprofiler/images/publish_x.png\" border=\"0\" alt=\"" . _UE_REMOVECONNECTION . "\" title=\"" . _UE_DECLINECONNECTION . "\" /></a>";
         }
         $tipField = "<b>" . _UE_CONNECTEDSINCE . "</b> : " . dateConverter($connection->membersince, 'Y-m-d', $ueConfig['date_format']);
         if (getLangDefinition($connection->type) != null) {
             $tipField .= "<br /><b>" . _UE_CONNECTIONTYPE . "</b> : " . getConnectionTypes($connection->type);
         }
         if ($connectio 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getFieldVisibilityPermission函数代码示例发布时间:2022-05-15
下一篇:
PHP getFieldNamesByHeaders函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap