当前位置: 首页>>代码示例>>PHP>>正文


PHP CATSUtility::getIndexName方法代码示例

本文整理汇总了PHP中CATSUtility::getIndexName方法的典型用法代码示例。如果您正苦于以下问题:PHP CATSUtility::getIndexName方法的具体用法?PHP CATSUtility::getIndexName怎么用?PHP CATSUtility::getIndexName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CATSUtility的用法示例。


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

示例1: __construct

 public function __construct($siteID, $parameters)
 {
     /* Pager configuration. */
     $this->_tableWidth = 915;
     $this->_defaultAlphabeticalSortBy = 'lastName';
     $this->ajaxMode = false;
     $this->showExportCheckboxes = true;
     //BOXES WILL NOT APPEAR UNLESS SQL ROW exportID IS RETURNED!
     $this->showActionArea = true;
     $this->showChooseColumnsBox = true;
     $this->allowResizing = true;
     $this->dateCriterion = '';
     if (isset($parameters['period']) && !empty($parameters['period'])) {
         $this->dateCriterion .= ' AND activity.date_created >= ' . $parameters['period'] . ' ';
     } else {
         if (isset($parameters['startDate']) && !empty($parameters['startDate'])) {
             $this->dateCriterion .= ' AND activity.date_created >= \'' . $parameters['startDate'] . '\' ';
         }
         if (isset($parameters['endDate']) && !empty($parameters['endDate'])) {
             $this->dateCriterion .= ' AND activity.date_created <= \'' . $parameters['endDate'] . '\' ';
         }
     }
     $this->defaultSortBy = 'dateCreatedSort';
     $this->defaultSortDirection = 'DESC';
     $this->_defaultColumns = array(array('name' => 'Date', 'width' => 110), array('name' => 'First Name', 'width' => 85), array('name' => 'Last Name', 'width' => 75), array('name' => 'Regarding', 'width' => 125), array('name' => 'Activity', 'width' => 65), array('name' => 'Notes', 'width' => 240), array('name' => 'Entered By', 'width' => 60));
     $this->_db = DatabaseConnection::getInstance();
     $this->_siteID = $siteID;
     $this->_assignedCriterion = "";
     $this->_dataItemIDColumn = 'company.company_id';
     $this->_classColumns = array('Date' => array('pagerRender' => 'return $rsData[\'dateCreated\'];', 'sortableColumn' => 'dateCreatedSort', 'pagerWidth' => 110, 'pagerOptional' => true, 'alphaNavigation' => true, 'filterHaving' => 'dateCreated'), 'First Name' => array('pagerRender' => 'if ($rsData[\'dataItemType\']==' . DATA_ITEM_CANDIDATE . ') {$ret = \'<img src="images/mru/candidate.gif" height="12" alt="" />\';} else if ($rsData[\'dataItemType\']==' . DATA_ITEM_CONTACT . ') {$ret = \'<img src="images/mru/contact.gif" height="12">\';} else {$ret = \'<img src="images/mru/blank.gif">\';} if ($rsData[\'isHot\'] == 1) $className =  \'jobLinkHot\'; else $className = \'jobLinkCold\'; if ($rsData[\'dataItemType\']==' . DATA_ITEM_CANDIDATE . ') {return $ret.\'&nbsp;<a href="' . CATSUtility::getIndexName() . '?m=candidates&amp;a=show&amp;candidateID=\'.$rsData[\'dataItemID\'].\'" class="\'.$className.\'" title="\'.htmlspecialchars(InfoString::make($rsData[\'dataItemType\'],$rsData[\'dataItemID\'],$rsData[\'siteID\'])).\'">\'.htmlspecialchars($rsData[\'firstName\']).\'</a>\';} else {return  $ret.\'&nbsp;<a href="' . CATSUtility::getIndexName() . '?m=contacts&amp;a=show&amp;contactID=\'.$rsData[\'dataItemID\'].\'" class="\'.$className.\'" title="\'.htmlspecialchars(InfoString::make($rsData[\'dataItemType\'],$rsData[\'dataItemID\'],$rsData[\'siteID\'])).\'">\'.htmlspecialchars($rsData[\'firstName\']).\'</a>\';}', 'sortableColumn' => 'firstName', 'pagerWidth' => 85, 'pagerOptional' => false, 'alphaNavigation' => true, 'filterHaving' => 'firstName'), 'Last Name' => array('pagerRender' => 'if ($rsData[\'isHot\'] == 1) $className =  \'jobLinkHot\'; else $className = \'jobLinkCold\'; if ($rsData[\'dataItemType\']==' . DATA_ITEM_CANDIDATE . ') {return \'<a href="' . CATSUtility::getIndexName() . '?m=candidates&amp;a=show&amp;candidateID=\'.$rsData[\'dataItemID\'].\'" class="\'.$className.\'" title="\'.htmlspecialchars(InfoString::make($rsData[\'dataItemType\'],$rsData[\'dataItemID\'],$rsData[\'siteID\'])).\'"> \'.htmlspecialchars($rsData[\'lastName\']).\'</a>\';} else {return \'<a href="' . CATSUtility::getIndexName() . '?m=contacts&amp;a=show&amp;contactID=\'.$rsData[\'dataItemID\'].\'" class="\'.$className.\'" title="\'.htmlspecialchars(InfoString::make($rsData[\'dataItemType\'],$rsData[\'dataItemID\'],$rsData[\'siteID\'])).\'"> \'.htmlspecialchars($rsData[\'lastName\']).\'</a>\';}', 'sortableColumn' => 'lastName', 'pagerWidth' => 75, 'pagerOptional' => false, 'alphaNavigation' => true, 'filterHaving' => 'lastName'), 'Regarding' => array('pagerRender' => 'if ($rsData[\'jobIsHot\'] == 1) $className =  \'jobLinkHot\'; else $className = \'jobLinkCold\'; if ($rsData[\'companyIsHot\'] == 1) $companyClassName =  \'jobLinkHot\'; else $companyClassName = \'jobLinkCold\';  if ($rsData[\'regardingJobTitle\'] == \'\') {$ret = \'General\'; } else {$ret = \'<a href="' . CATSUtility::getIndexName() . '?m=joborders&amp;a=show&amp;jobOrderID=\'.$rsData[\'jobOrderID\'].\'" class="\'.$className.\'">\'.htmlspecialchars($rsData[\'regardingJobTitle\']).\'</a>\'; if($rsData[\'regardingCompanyName\'] != \'\') {$ret .= \' <a href="' . CATSUtility::getIndexName() . '?m=companies&amp;a=show&amp;companyID=\'.$rsData[\'companyID\'].\'" class="\'.$companyClassName.\'">(\'.htmlspecialchars($rsData[\'regardingCompanyName\']).\')\';}} return $ret;', 'sortableColumn' => 'regarding', 'pagerWidth' => 125, 'pagerOptional' => true, 'alphaNavigation' => true, 'filterHaving' => 'regarding'), 'Activity' => array('pagerRender' => '$ret = $rsData[\'typeDescription\']; return $ret;', 'sortableColumn' => 'typeDescription', 'pagerWidth' => 65, 'pagerOptional' => true, 'alphaNavigation' => true, 'filter' => 'activity_type.short_description'), 'Notes' => array('pagerRender' => 'return $rsData[\'notes\'];', 'sortableColumn' => 'notes', 'pagerWidth' => 240, 'pagerOptional' => true, 'alphaNavigation' => true, 'filterHaving' => 'notes'), 'Entered By' => array('pagerRender' => 'return StringUtility::makeInitialName($rsData[\'enteredByFirstName\'], $rsData[\'enteredByLastName\'], false, LAST_NAME_MAXLEN);', 'exportRender' => 'return $rsData[\'enteredByFirstName\'] . " " .$rsData[\'enteredByLastName\'];', 'sortableColumn' => 'enteredBySort', 'pagerWidth' => 60, 'alphaNavigation' => true, 'filter' => 'CONCAT(entered_by_user.last_name, entered_by_user.first_name)'));
     parent::__construct("activity:ActivityDataGrid", $parameters);
 }
开发者ID:PublicityPort,项目名称:OpenCATS,代码行数:32,代码来源:dataGrids.php

示例2: getForm

 /**
  * Generates HTML code for export forms / menus.
  *
  * @param flag data item type being exported
  * @param string comma-separated list of data item IDs
  * @param integer number of pixles right the export box should be displayed
  * @return array containing parts of html code for the export form.
  */
 public static function getForm($dataItemType, $IDs, $popUpOffset = 35, $linkOffset = 5)
 {
     $indexName = CATSUtility::getIndexName();
     /* Build form header. */
     $header = '<form name="selectedObjects" action="' . $indexName . '" method="get">' . "\n" . '<input type="hidden" name="m" value="export" />' . "\n" . '<input type="hidden" name="onlySelected" value="true" />' . "\n" . '<input type="hidden" name="dataItemType" value="' . $dataItemType . '" />' . "\n";
     /* Build form menu. */
     $allRecordsURL = sprintf('%s?m=export&amp;a=export&amp;dataItemType=%s', $indexName, $dataItemType);
     if ($_REQUEST["m"] == "candidates") {
         $objSearchDS = new SearchDataStructure($_REQUEST["m"]);
         $objSearchDS->loadFromURL();
         $_SESSION["AUIEO"]["CANDIDATS"]["SearchDS"] = $objSearchDS;
         $allRecordsJoborderURL = sprintf('%s?m=candidates&a=considerForJobSearch&candidateID=SearchDS', $indexName);
     }
     $currentPageURL = sprintf('%s?m=export&amp;a=export&amp;dataItemType=%s&amp;ids=%s', $indexName, $dataItemType, $IDs);
     if ($_REQUEST["m"] == "candidates") {
         $arrID = explode(",", $IDs);
         foreach ($arrID as $ind => $id) {
             $arrID[$ind] = "candidateID[]=" . trim($id);
         }
         $candidateIDs = implode("&", $arrID);
         $currentPageJoborderURL = sprintf('%s?m=candidates&a=considerForJobSearch&%s', $indexName, $candidateIDs);
     }
     $menu = '<div style="float: left; margin-left: 4px; margin-right: ' . $linkOffset . 'px;">' . '<form name="selectAll" action="#">' . '<input type="checkbox" name="allBox" title="Select All" onclick="toggleChecksAll();" />' . '</form>' . '</div>' . '<a href="#" id="exportBoxLink" onclick="showBox(\'ExportBox\'); return false;">Export</a> | <a href="#" id="deleteBoxLink" onclick="deleteSelected(); return false;">Delete</a>';
     if ($_REQUEST["m"] == "candidates") {
         $menu = $menu . ' | <a href="#" id="addToJoborderBoxLink" onclick="showBox(\'JoborderBox\'); return false;">Add to joborder</a>';
     }
     $menu = $menu . '<br />' . '<div class="exportPopup" id="ExportBox" align="left" onmouseover="showBox(\'ExportBox\');" onmouseout="hideBox(\'ExportBox\');">' . '<a href="' . $allRecordsURL . '">Export All Records</a><br />' . '<a href="' . $currentPageURL . '">Export Current Page</a><br />' . '<a href="#" onclick="checkSelected(); return false;">Export Selected Records</a>' . '</div>';
     if ($_REQUEST["m"] == "candidates") {
         $menu = $menu . '
                 <div class="exportPopup" id="JoborderBox" align="left" onmouseover="showBox(\'JoborderBox\');" onmouseout="hideBox(\'JoborderBox\');">' . '<a href="javascript:void(0);" onclick="showPopWin(\'' . $allRecordsJoborderURL . '\', 750, 390, null); return false;">All Records</a><br />' . '<a href="javascript:void(0);" onclick="showPopWin(\'' . $allRecordsJoborderURL . '\', 750, 390, null); return false;">Current Page</a><br />' . '<a href="#" onclick="checkSelected(); return false;">Selected Records</a>' . '</div>';
     }
     $footer = '</form>';
     return array('header' => $header, 'footer' => $footer, 'menu' => $menu);
 }
开发者ID:Hassanj343,项目名称:candidats,代码行数:42,代码来源:Export.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'lists';
     $this->_moduleName = 'lists';
     $this->_moduleTabText = 'Lists';
     $this->_subTabs = array('Show Lists' => CATSUtility::getIndexName() . '?m=lists');
 }
开发者ID:PublicityPort,项目名称:OpenCATS,代码行数:9,代码来源:ListsUI.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'joborders';
     $this->_moduleName = 'joborders';
     $this->_moduleTabText = 'Job Orders';
     $this->_subTabs = array('Add Job Order' => 'javascript:void(0);*js=showPopWin(\'' . CATSUtility::getIndexName() . '?m=joborders&amp;a=addJobOrderPopup\', 400, 250, null);*al=' . ACCESS_LEVEL_EDIT, 'Search Job Orders' => CATSUtility::getIndexName() . '?m=joborders&amp;a=search');
 }
开发者ID:PublicityPort,项目名称:OpenCATS,代码行数:9,代码来源:JobOrdersUI.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'contacts';
     $this->_moduleName = 'contacts';
     $this->_moduleTabText = 'Contacts';
     $this->_subTabs = array('Add Contact' => CATSUtility::getIndexName() . '?m=contacts&amp;a=add*al=' . ACCESS_LEVEL_EDIT, 'Search Contacts' => CATSUtility::getIndexName() . '?m=contacts&amp;a=search', 'Cold Call List' => CATSUtility::getIndexName() . '?m=contacts&amp;a=showColdCallList');
 }
开发者ID:rankinp,项目名称:OpenCATS,代码行数:9,代码来源:ContactsUI.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'companies';
     $this->_moduleName = 'companies';
     $this->_moduleTabText = 'Companies';
     $this->_subTabs = array('Add Company' => CATSUtility::getIndexName() . '?m=companies&amp;a=add*al=' . ACCESS_LEVEL_EDIT . '*hrmode=0', 'Search Companies' => CATSUtility::getIndexName() . '?m=companies&amp;a=search*hrmode=0', 'Go To My Company' => CATSUtility::getIndexName() . '?m=companies&amp;a=internalPostings*hrmode=0');
 }
开发者ID:rankinp,项目名称:OpenCATS,代码行数:9,代码来源:CompaniesUI.php

示例7: getInnerActionArea

 /**
  * Adds more options to the action area on the pager.  Overloads 
  * DataGrid Inner Action Area function.
  *
  * @return html innerActionArea commands.
  */
 public function getInnerActionArea()
 {
     $html = parent::getInnerActionArea();
     $newParameterArray = $this->_parameters;
     $newParameterArray['exportIDs'] = '<dynamic>';
     $html .= sprintf('<a href="javascript:void(0);" onclick="window.location.href=\'%s?m=export&amp;a=exportByDataGrid&amp;i=%s&amp;p=%s&amp;&dynamicArgument%s=\' + urlEncode(serializeArray(exportArray%s));">Export Selected</a><br />', CATSUtility::getIndexName(), urlencode($this->_instanceName), urlencode(serialize($newParameterArray)), urlencode($this->_instanceName), md5($this->_instanceName));
     //$html .= sprintf(
     //            '<a href="">Delete Selected</a><br />'
     //         );
     return $html;
 }
开发者ID:rankinp,项目名称:OpenCATS,代码行数:17,代码来源:dataGrids.php

示例8: getForm

 /**
  * Generates HTML code for export forms / menus.
  *
  * @param flag data item type being exported
  * @param string comma-separated list of data item IDs
  * @param integer number of pixles right the export box should be displayed
  * @return array containing parts of html code for the export form.
  */
 public static function getForm($dataItemType, $IDs, $popUpOffset = 35, $linkOffset = 5)
 {
     $indexName = CATSUtility::getIndexName();
     /* Build form header. */
     $header = '<form name="selectedObjects" action="' . $indexName . '" method="get">' . "\n" . '<input type="hidden" name="m" value="export" />' . "\n" . '<input type="hidden" name="onlySelected" value="true" />' . "\n" . '<input type="hidden" name="dataItemType" value="' . $dataItemType . '" />' . "\n";
     /* Build form menu. */
     $allRecordsURL = sprintf('%s?m=export&amp;a=export&amp;dataItemType=%s', $indexName, $dataItemType);
     $currentPageURL = sprintf('%s?m=export&amp;a=export&amp;dataItemType=%s&amp;ids=%s', $indexName, $dataItemType, $IDs);
     $menu = '<div style="float: left; margin-left: 4px; margin-right: ' . $linkOffset . 'px;">' . '<form name="selectAll" action="#">' . '<input type="checkbox" name="allBox" title="Select All" onclick="toggleChecksAll();" />' . '</form>' . '</div>' . '<a href="#" id="exportBoxLink" onclick="showBox(\'ExportBox\'); return false;">Export</a><br />' . '<div class="exportPopup" id="ExportBox" align="left" onmouseover="showBox(\'ExportBox\');" onmouseout="hideBox(\'ExportBox\');">' . '<a href="' . $allRecordsURL . '">Export All Records</a><br />' . '<a href="' . $currentPageURL . '">Export Current Page</a><br />' . '<a href="#" onclick="checkSelected(); return false;">Export Selected Records</a>' . '</div>';
     $footer = '</form>';
     return array('header' => $header, 'footer' => $footer, 'menu' => $menu);
 }
开发者ID:PublicityPort,项目名称:OpenCATS,代码行数:20,代码来源:Export.php

示例9: __construct

    public function __construct()
    {
        parent::__construct();

        $this->_authenticationRequired = true;
        $this->_moduleDirectory = 'lists';
        $this->_moduleName = 'lists';
        $this->_moduleTabText = 'Lists';
        $this->_subTabs = array(
            'Show Lists'     => CATSUtility::getIndexName() . '?m=lists'
           /* 'New Static List' => CATSUtility::getIndexName() . '?m=lists&a=newListStatic*al=' . ACCESS_LEVEL_EDIT, */
           /* 'New Dynamic List' => CATSUtility::getIndexName() . '?m=lists&a=newListDynamic*al=' . ACCESS_LEVEL_EDIT */
        );
    }
开发者ID:Hassanj343,项目名称:candidats,代码行数:14,代码来源:ListsUI.php

示例10: getInnerActionArea

 /**
  * Adds more options to the action area on the pager.  Overloads
  * DataGrid Inner Action Area function.
  *
  * @return html innerActionArea commands.
  */
 public function getInnerActionArea()
 {
     //TODO: Add items:
     //  - Add to List
     //  - Add to Pipeline
     //  - Mass set rank (depends on each candidate having their own personal rank - are we going to do this?)
     $html = '';
     $html .= $this->getInnerActionAreaItem('Remove From This List', CATSUtility::getIndexName() . '?m=lists&amp;a=removeFromListDatagrid&amp;dataItemType=' . DATA_ITEM_CANDIDATE . '&amp;savedListID=' . $this->getMiscArgument(), false);
     $html .= $this->getInnerActionAreaItemPopup('Add To Pipeline', CATSUtility::getIndexName() . '?m=candidates&amp;a=considerForJobSearch', 750, 460);
     if (MAIL_MAILER != 0) {
         $html .= $this->getInnerActionAreaItem('Send E-Mail', CATSUtility::getIndexName() . '?m=candidates&amp;a=emailCandidates');
     }
     $html .= $this->getInnerActionAreaItem('Export', CATSUtility::getIndexName() . '?m=export&amp;a=exportByDataGrid');
     $html .= parent::getInnerActionArea();
     return $html;
 }
开发者ID:PublicityPort,项目名称:OpenCATS,代码行数:22,代码来源:dataGrids.php

示例11: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_realAccessLevel = $_SESSION['CATS']->getRealAccessLevel();
     $this->_authenticationRequired = true;
     $this->_moduleDirectory = 'settings';
     $this->_moduleName = 'settings';
     $this->_moduleTabText = 'Settings';
     /* Only CATS professional on site gets to make career portal customizer users. */
     if (!file_exists('modules/asp') && LicenseUtility::isProfessional()) {
         $this->_settingsUserCategories = array(array('Career Portal Customizer', 'careerportal', 'This user can\'t do anything but modify the career portal settings.  It is intended to be used by the CATS Professional Support Team.  This user does not count against your maximum users.', ACCESS_LEVEL_SA, ACCESS_LEVEL_READ));
     }
     $mp = array('Administration' => CATSUtility::getIndexName() . '?m=settings&amp;a=administration', 'My Profile' => CATSUtility::getIndexName() . '?m=settings');
     /* Only CATS professional can download addons. */
     if (file_exists('modules/asp') || LicenseUtility::isProfessional()) {
         $mp['Downloads'] = CATSUtility::getIndexName() . '?m=settings&amp;a=downloads';
     }
     $this->_subTabs = $mp;
     $this->_hooks = $this->defineHooks();
 }
开发者ID:Khum,项目名称:HRTracking,代码行数:20,代码来源:SettingsUI.php

示例12: __construct

    public function __construct()
    {
        parent::__construct();

        $this->_realAccessLevel = $_SESSION['CATS']->getRealAccessLevel();
        $this->_authenticationRequired = true;
        $this->_moduleDirectory = 'settings';
        $this->_moduleName = 'settings';
        $this->_moduleTabText = 'Settings';

        $mp = array(
            'Administration' => CATSUtility::getIndexName() . '?m=settings&amp;a=administration',
            'My Profile'     => CATSUtility::getIndexName() . '?m=settings'
        );

        $mp['Downloads'] = CATSUtility::getIndexName() . '?m=settings&a=downloads';

        $this->_subTabs = $mp;
        
        $this->_hooks = $this->defineHooks();
    }
开发者ID:Hassanj343,项目名称:candidats,代码行数:21,代码来源:SettingsUI.php

示例13: displayPublicJobOrders

 private function displayPublicJobOrders()
 {
     $site = new Site(-1);
     $careerPortalSiteID = $site->getFirstSiteID();
     if (!eval(Hooks::get('RSS_SITEID'))) {
         return;
     }
     $jobOrders = new JobOrders($careerPortalSiteID);
     $rs = $jobOrders->getAll(JOBORDERS_STATUS_ACTIVE, -1, -1, -1, false, true);
     /* XML Headers */
     header('Content-type: text/xml');
     $indexName = CATSUtility::getIndexName();
     $stream = sprintf("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n" . "<rss version=\"2.0\">\n" . "<channel>\n" . "<title>New Job Orders</title>\n" . "<description>CATS RSS Feed</description>\n" . "<link>%s</link>\n" . "<pubDate>%s</pubDate>\n", CATSUtility::getAbsoluteURI(), DateUtility::getRSSDate());
     foreach ($rs as $rowIndex => $row) {
         $uri = sprintf("%scareers/?p=showJob&amp;ID=%d", CATSUtility::getAbsoluteURI(), $row['jobOrderID']);
         // Fix URL if viewing from /rss without using globals or dirup '../'
         if (strpos($_SERVER['PHP_SELF'], '/rss/') !== false) {
             $uri = str_replace('/rss/', '/', $uri);
         }
         $stream .= sprintf("<item>\n" . "<title>%s (%s)</title>\n" . "<description>Located in %s.</description>\n" . "<link>%s</link>\n" . "</item>\n", $row['title'], $jobOrders->typeCodeToString($row['type']), StringUtility::makeCityStateString($row['city'], $row['state']), $uri);
     }
     $stream .= "</channel>\n</rss>\n";
     echo $stream;
 }
开发者ID:PublicityPort,项目名称:OpenCATS,代码行数:24,代码来源:RssUI.php

示例14: getHTMLOfLink

 /**
  * Returns link HTML for a data item.
  *
  * @param flag Data Item type flag.
  * @param integer Data Item ID.
  * @param boolean Show name / data item title?
  * @return string Link HTML (<a href="...">...</a>).
  */
 private function getHTMLOfLink($dataItemID, $dataItemType, $showTitle = true)
 {
     $string = '<a href="' . CATSUtility::getIndexName();
     switch ($dataItemType) {
         case DATA_ITEM_CANDIDATE:
             $candidates = new Candidates($this->_siteID);
             $string .= '?m=candidates&amp;a=show&amp;candidateID=' . $dataItemID . '">';
             $string .= '<img src="images/mru/candidate.gif" alt="" style="border: none;" title="Candidate" />';
             if ($showTitle) {
                 $data = $candidates->get($dataItemID);
                 if (!isset($data['firstName'])) {
                     $string = '<img src="images/mru/company.gif" alt="" style="border: none;" /> (Candidate Deleted)<a>';
                 } else {
                     $string .= '&nbsp;' . $data['firstName'] . ' ' . $data['lastName'];
                 }
             }
             $image = 'images/mru/candidate.gif';
             break;
         case DATA_ITEM_COMPANY:
             $companies = new Companies($this->_siteID);
             $string .= '?m=companies&amp;a=show&amp;companyID=' . $dataItemID . '">';
             $string .= '<img src="images/mru/company.gif" alt="" style="border: none;" title="Company" />';
             if ($showTitle) {
                 $data = $companies->get($dataItemID);
                 if (!isset($data['name'])) {
                     $string = '<img src="images/mru/company.gif" alt="" style="border: none;" /> (Company Deleted)<a>';
                 } else {
                     $string .= '&nbsp;' . $data['name'];
                 }
             }
             break;
         case DATA_ITEM_CONTACT:
             $contacts = new Contacts($this->_siteID);
             $string .= '?m=contacts&amp;a=show&amp;contactID=' . $dataItemID . '">';
             $string .= '<img src="images/mru/contact.gif" alt="" style="border: none;" title="Contact" />';
             if ($showTitle) {
                 $data = $contacts->get($dataItemID);
                 if (!isset($data['firstName'])) {
                     $string = '<img src="images/mru/contact.gif" alt="" style="border: none;" /> (Contact Deleted)<a>';
                 } else {
                     $string .= '&nbsp;' . $data['firstName'] . ' ' . $data['lastName'];
                 }
             }
             break;
         case DATA_ITEM_JOBORDER:
             $jobOrders = new JobOrders($this->_siteID);
             $string .= '?m=joborders&amp;a=show&amp;jobOrderID=' . $dataItemID . '">';
             $string .= '<img src="images/mru/job_order.gif" alt="" style="border: none;" title="Job Order" />';
             if ($showTitle) {
                 $data = $jobOrders->get($dataItemID);
                 if (!isset($data['title'])) {
                     $string = '<img src="images/mru/job_order.gif" alt="" style="border: none;" /> (Job Order Deleted)<a>';
                 } else {
                     $string .= '&nbsp;' . $data['title'];
                 }
             }
             break;
     }
     $string .= '</a>';
     return $string;
 }
开发者ID:Hassanj343,项目名称:candidats,代码行数:69,代码来源:Calendar.php

示例15: echo

                                <td>
                                    <select id="addFieldSelect<?php echo($index); ?>">
                                      <?php foreach($this->extraFieldTypes as $extraFieldTypeIndex => $extraFieldTypeData): ?>
                                        <option value="<?php echo($extraFieldTypeIndex); ?>"><?php $this->_($extraFieldTypeData['name']); ?></option>
                                      <?php endforeach; ?>
                                   </select>
                                </td>
                            </tr>
                        </table>                                    
                        <input type="button" class="button" value="Add Field" onclick="onAddField<?php echo($index); ?>();" />&nbsp;
                        <input type="button" class="button" value="Cancel" onclick="onHideAddArea<?php echo($index); ?>();" />
                    </div>
                    <div id="addFieldOption<?php echo($index); ?>">
                        <a href="javascript:void(0);" onclick="document.getElementById('addField<?php echo($index); ?>').style.display=''; document.getElementById('addFieldOption<?php echo($index); ?>').style.display='none'; document.getElementById('addFieldName<?php echo($index); ?>').value=''; document.getElementById('addFieldName<?php echo($index); ?>').focus();">
                            <img src="images/actions/add_small.gif" border="0" />&nbsp;Add field to <?php echo($data['name']); ?>
                        </a>
                    </div>
                    <br />
                    <br />
                </td>
            </tr>
        <?php endforeach; ?>

    </table>
    <input type="submit" class="button" value="Save" style="display:none;" id="buttonSave" />
    <input type="button" name="back" class = "button" value="Done" id="buttonDone"  onclick="document.location.href='<?php echo(CATSUtility::getIndexName()); ?>?m=settings&amp;a=administration';" />
</form>
    <?php 
$AUIEO_CONTENT=ob_get_clean();
			?>
开发者ID:Hassanj343,项目名称:candidats,代码行数:30,代码来源:CustomizeExtraFields.php


注:本文中的CATSUtility::getIndexName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。