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


PHP GetTableURL函数代码示例

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


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

示例1: buildControl

 function buildControl($value, $mode, $fieldNum, $validate, $additionalCtrlParams, $data)
 {
     parent::buildControl($value, $mode, $fieldNum, $validate, $additionalCtrlParams, $data);
     $nWidth = $this->pageObject->pSetEdit->getNCols($this->field);
     $nHeight = $this->pageObject->pSetEdit->getNRows($this->field);
     if ($this->pageObject->pSetEdit->isUseRTE($this->field)) {
         $value = $this->RTESafe($value);
         // creating src url
         $browser = "";
         if (@$_REQUEST["browser"] == "ie") {
             $browser = "&browser=ie";
         }
         // add JS code
         echo "<iframe frameborder=\"0\" vspace=\"0\" hspace=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" id=\"" . $this->cfield . "\" " . (($mode == MODE_INLINE_EDIT || $mode == MODE_INLINE_ADD) && $this->is508 == true ? "alt=\"" . $this->strLabel . "\" " : "") . "name=\"" . $this->cfield . "\" title=\"Basic rich text editor\" style='";
         if (!isMobile()) {
             echo "width: " . ($nWidth + 1) . "px;";
         }
         echo "height: " . ($nHeight + 100) . "px;'";
         echo " src=\"" . GetTableLink("rte", "", "ptype=" . $this->pageObject->pageType . "&table=" . GetTableURL($this->pageObject->tName) . "&" . "id=" . $this->id . "&" . $this->iquery . $browser . "&" . ($mode == MODE_ADD || $mode == MODE_INLINE_ADD ? "action=add" : '')) . "\">";
         echo "</iframe>";
     } else {
         echo '<textarea id="' . $this->cfield . '" ' . (($mode == MODE_INLINE_EDIT || $mode == MODE_INLINE_ADD) && $this->is508 == true ? 'alt="' . $this->strLabel . '" ' : '') . 'name="' . $this->cfield . '" style="';
         if (!isMobile()) {
             echo "width: " . $nWidth . "px;";
         }
         echo 'height: ' . $nHeight . 'px;">' . runner_htmlspecialchars($value) . '</textarea>';
     }
     $this->buildControlEnd($validate);
 }
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:29,代码来源:TextAreaField.php

示例2: DashboardPage

 /**
  * @constructor
  * @param &Array params
  */
 function DashboardPage(&$params)
 {
     parent::RunnerPage($params);
     // Set language params, if have more than one language
     $this->setLangParams();
     $this->jsSettings['tableSettings'][$this->tName]['dashElements'] = array();
     //	calculate additional element settings
     foreach ($this->pSet->getDashboardElements() as $key => $elem) {
         $permissions = false;
         $newElem = $elem;
         if ($elem['type'] == DASHBOARD_RECORD) {
             // check tables (add, view, edit) permissinons befor add to js
             $newElem['tabsPageTypes'] = array();
             foreach ($elem['tabsPageTypes'] as $idx => $pageType) {
                 if ($this->CheckPermissions($elem['table'], $pageType)) {
                     $permissions = true;
                     $newElem['tabsPageTypes'][] = $pageType;
                 }
             }
         } elseif ($elem['type'] == DASHBOARD_DETAILS) {
             $eset = new ProjectSettings($elem['table']);
             $details = $eset->getDetailTablesArr();
             // add details shortTableNames
             $newElem['details'] = array();
             foreach ($details as $idx => $d) {
                 if (in_array($d['dDataSourceTable'], $elem['notUsedDetailTables'])) {
                     continue;
                 }
                 if ($this->CheckPermissions($d['dDataSourceTable'], $d['dType'])) {
                     $permissions = true;
                     $newElem['details'][$idx] = $d;
                     $this->jsSettings['tableSettings'][$d['dDataSourceTable']]['shortTName'] = $d['dShortTable'];
                 }
             }
         } elseif ($elem['type'] == DASHBOARD_CHART || $elem['type'] == DASHBOARD_REPORT || $elem['type'] == DASHBOARD_SEARCH) {
             $permissions = $this->CheckPermissions($elem['table'], "Search");
         } elseif ($elem['type'] == DASHBOARD_LIST) {
             $permissions = $this->CheckPermissions($elem['table'], "list");
         }
         $this->elementsPermissions[$key] = $permissions;
         if (!$permissions) {
             continue;
         }
         // add shortTableNames and element
         $this->jsSettings['tableSettings'][$elem['table']]['shortTName'] = GetTableURL($elem['table']);
         $this->jsSettings['tableSettings'][$this->tName]['dashElements'][$key] = $newElem;
     }
 }
开发者ID:sdev1,项目名称:CloudStockEnquiry,代码行数:52,代码来源:dashboardpage.php

示例3: setTable

 function setTable($table)
 {
     $this->_table = $table;
     global $tables_data, $field_labels, $fieldToolTips, $detailsTablesData, $masterTablesData, $tableEvents, $cipherer;
     if (GetTableURL($table) != "") {
         include_once getabspath("include/" . GetTableURL($table) . "_settings.php");
     }
     if (isset($tables_data[$this->_table])) {
         $this->_tableData =& $tables_data[$this->_table];
     }
     $this->_mastersTableData =& $masterTablesData[$this->_table];
     $this->_detailsTableData =& $detailsTablesData[$this->_table];
     $this->_editPage = $this->getDefaultEditPageType($this->isTableType());
     $this->_viewPage = $this->getDefaultViewPageType($this->isTableType());
     $this->_defaultEditPage = $this->_editPage;
     $this->_defaultViewPage = $this->_viewPage;
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:17,代码来源:projectsettings.php

示例4: showDBValue

 public function showDBValue(&$data, $keylink)
 {
     if ($this->container->forExport) {
         return "LONG BINARY DATA - CANNOT BE DISPLAYED";
     }
     $value = "";
     $titleField = $this->container->pSet->getAudioTitleField($this->field);
     $title = "";
     if ($titleField) {
         $title = htmlspecialchars($data[$titleField]);
     }
     if (@$data[$this->field] != NULL && $this->container->pageType != PAGE_PRINT) {
         $value = '<a class="htrack" type="audio/mpeg" title="' . $title . '" href="getfile.php?table=' . GetTableURL($this->container->pSet->_table) . '&field=' . rawurlencode($this->field) . $keylink . '">' . $title . '</a>';
     } else {
         $value = $title;
     }
     return $value;
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:18,代码来源:ViewDatabaseAudioField.php

示例5: showDBValue

 public function showDBValue(&$data, $keylink)
 {
     $value = "";
     $fileNameF = $this->container->pSet->getFilenameField($this->field);
     if ($fileNameF) {
         $fileName = $data[$fileNameF];
         if (!$fileName) {
             $fileName = "file.bin";
         }
     } else {
         $fileName = "file.bin";
     }
     if (strlen($data[$this->field])) {
         $value = "<a href='" . GetTableLink("getfile", "", "table=" . GetTableURL($this->container->pSet->_table) . "&filename=" . rawurlencode($fileName) . "&field=" . rawurlencode($this->field) . $keylink) . "'>";
         $value .= runner_htmlspecialchars($fileName);
         $value .= "</a>";
     }
     return $value;
 }
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:19,代码来源:ViewDatabaseFileField.php

示例6: showDBValue

 public function showDBValue(&$data, $keylink)
 {
     $value = "";
     $title = "";
     $titleField = $this->container->pSet->getAudioTitleField($this->field);
     if ($titleField) {
         $title = runner_htmlspecialchars($data[$titleField]);
     }
     if (@$data[$this->field] != NULL && $this->container->pageType != PAGE_PRINT) {
         if (!$title) {
             $title = "Track.mp3";
         }
         $href = GetTableLink('getfile', '', 'table=' . GetTableURL($this->container->pSet->_table) . '&field=' . rawurlencode($this->field) . $keylink . '&filename=' . $title);
         $link = '<a title="' . $title . '" href="' . $href . '">' . $title . '</a>';
         $value = '<audio controls preload="none" src="' . $href . '">' . $link . '</audio>';
     } else {
         $value = $title;
     }
     return $value;
 }
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:20,代码来源:ViewDatabaseAudioField.php

示例7: showDBValue

 public function showDBValue(&$data, $keylink)
 {
     if ($this->container->forExport) {
         return "LONG BINARY DATA - CANNOT BE DISPLAYED";
     }
     $value = "";
     $fileNameF = $this->container->pSet->getFilenameField($this->field);
     if ($fileNameF) {
         $fileName = $data[$fileNameF];
         if (!$fileName) {
             $fileName = "file.bin";
         }
     } else {
         $fileName = "file.bin";
     }
     if (strlen($data[$this->field])) {
         $value = "<a href='getfile.php?table=" . GetTableURL($this->container->pSet->_table) . "&filename=" . rawurlencode($fileName) . "&field=" . rawurlencode($this->field) . $keylink . "'>";
         $value .= htmlspecialchars($fileName);
         $value .= "</a>";
     }
     return $value;
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:22,代码来源:ViewDatabaseFileField.php

示例8: ProcessLargeText

function ProcessLargeText($pSet, $strValue, $iquery = "", $table = "", $mode = MODE_LIST, $format = "", $isMobileLookup = false, $isReport = false)
{
    $cNumberOfChars = $pSet->getNumberOfChars();
    if (substr($strValue, 0, 8) == "<a href=" || substr($strValue, 0, 23) == "<img src=\"images/check_") {
        return $strValue;
    }
    $needShortening = $format != EDIT_FORMAT_LOOKUP_WIZARD && $cNumberOfChars > 0 && strlen($strValue) > $cNumberOfChars;
    if ($needShortening && ($mode == PAGE_LIST || $mode == PAGE_REPORT) && !$isMobileLookup) {
        global $strTableName;
        if (!$table) {
            $table = $strTableName;
        }
        $ret = GetShorteningForLargeText($strValue, $cNumberOfChars);
        $ret .= ' <a href="javascript:void(0);" query="fulltext.php?pagetype=' . $pSet->_viewPage . '&table=' . GetTableURL($table) . '&' . $iquery . '">' . "More" . ' ...</a>';
    } else {
        if ($needShortening && ($mode == PAGE_EXPORT && $isReport || $mode == PAGE_PRINT || $mode == PAGE_RPRINT || $isMobileLookup)) {
            $ret = GetShorteningForLargeText($strValue, $cNumberOfChars) . " ...";
        } else {
            $ret = htmlspecialchars($strValue);
        }
    }
    /*Left to future developments 
    //	highlight search results
    	if ($mode==MODE_LIST && $_SESSION[$strTableName."_search"]==1)
    	{
    		$ind = 0;
    		$searchopt=$_SESSION[$strTableName."_searchoption"];
    		$searchfor=$_SESSION[$strTableName."_searchfor"];
    //		highlight Contains search
    		if($searchopt=="Contains")
    		{
    			while ( ($ind = my_stripos($ret, $searchfor, $ind)) !== false )
    			{
    				$ret = substr($ret, 0, $ind) . "<span class=highlight>". substr($ret, $ind, strlen($searchfor)) ."</span>" . substr($ret, $ind + strlen($searchfor));
    				$ind+= strlen("<span class=highlight>") + strlen($searchfor) + strlen("</span>");
    			}
    		}
    //		highlight Starts with search
    		elseif($searchopt=="Starts with ...")
    		{
    			if( !strncasecmp($ret, $searchfor,strlen($searchfor)) )
    				$ret = "<span class=highlight>". substr($ret, 0, strlen($searchfor)) ."</span>" . substr($ret, strlen($searchfor));
    		}
    		elseif($searchopt=="Equals")
    		{
    			if( !strcasecmp($ret, $searchfor) )
    				$ret = "<span class=highlight>". $ret ."</span>";
    		}
    		elseif($searchopt=="More than ...")
    		{
    			if( strtoupper($ret)>strtoupper($searchfor) )
    				$ret = "<span class=highlight>". $ret ."</span>";
    		}
    		elseif($searchopt=="Less than ...")
    		{
    			if( strtoupper($ret)<strtoupper($searchfor) )
    				$ret = "<span class=highlight>". $ret ."</span>";
    		}
    		elseif($searchopt=="Equal or more than ...")
    		{
    			if( strtoupper($ret)>=strtoupper($searchfor) )
    				$ret = "<span class=highlight>". $ret ."</span>";
    		}
    		elseif($searchopt=="Equal or less than ...")
    		{
    			if( strtoupper($ret)<=strtoupper($searchfor) )
    				$ret = "<span class=highlight>". $ret ."</span>";
    		}
    	}
    */
    return nl2br($ret);
}
开发者ID:aagusti,项目名称:padl-tng,代码行数:72,代码来源:commonfunctions.php

示例9: array

 // create second control, if need it
 $xt->assignbyref("Code_editcontrol1", $ctrlBlockArr['searchcontrol1']);
 // create search type select
 $xt->assign("searchtype_Code", $ctrlBlockArr['searchtype']);
 $isFieldNeedSecCtrl = $searchControlBuilder->isNeedSecondCtrl("Code");
 $ctrlInd = 0;
 if ($isFieldNeedSecCtrl) {
     $pageObject->controlsMap["search"]["searchBlocks"][] = array('fName' => "Code", 'recId' => $id, 'ctrlsMap' => array(0 => $ctrlInd, 1 => $ctrlInd + 1));
     $ctrlInd += 2;
 } else {
     $pageObject->controlsMap["search"]["searchBlocks"][] = array('fName' => "Code", 'recId' => $id, 'ctrlsMap' => array(0 => $ctrlInd));
     $ctrlInd++;
 }
 // search fields data
 if (GetLookupTable("Location", $strTableName)) {
     $pageObject->settingsMap["globalSettings"]['shortTNames'][GetLookupTable("Location", $strTableName)] = GetTableURL(GetLookupTable("Location", $strTableName));
 }
 $pageObject->fillFieldToolTips("Location");
 $srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("Location");
 $firstFieldParams = array();
 if (count($srchFields)) {
     $firstFieldParams = $srchFields[0];
 } else {
     $firstFieldParams['fName'] = "Location";
     $firstFieldParams['eType'] = '';
     $firstFieldParams['value1'] = '';
     $firstFieldParams['opt'] = '';
     $firstFieldParams['value2'] = '';
     $firstFieldParams['not'] = false;
 }
 // create control
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:31,代码来源:LU_Locations_search.php

示例10: addFieldsSettings

 function addFieldsSettings($arrFields, $pageBased, $pageType)
 {
     $dashSearchFields = $this->pSet->getDashboardSearchFields();
     foreach ($arrFields as $fieldName) {
         $pSet = new ProjectSettings($dashSearchFields[$fieldName][0]["table"]);
         $tableFieldName = $dashSearchFields[$fieldName][0]["field"];
         if (!array_key_exists($fieldName, $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'])) {
             $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'][$fieldName] = array();
         }
         if (!array_key_exists($pageType, $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'][$fieldName])) {
             $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'][$fieldName][$pageType] = array();
         }
         foreach ($this->settingsMap["fieldSettings"] as $key => $val) {
             $fData = $pSet->getFieldData($tableFieldName, $key);
             if ($key == "validateAs") {
                 if ($pageType == PAGE_ADD || $pageType == PAGE_EDIT || $pageType == PAGE_REGISTER) {
                     $this->fillValidation($fData, $val, $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'][$fieldName][$pageType]);
                 }
                 continue;
             }
             if ($key == "RTEType") {
                 $fData = $pSet->getRTEType($tableFieldName);
                 if ($fData == "RTECK") {
                     $this->isUseCK = true;
                     $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'][$fieldName][$pageType]['nWidth'] = $pSet->getNCols($tableFieldName);
                     $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'][$fieldName][$pageType]['nHeight'] = $pSet->getNRows($tableFieldName);
                 }
             } elseif ($key == "autoCompleteFields") {
                 $fData = $pSet->getAutoCompleteFields($tableFieldName);
             }
             $isDefault = false;
             if (is_array($fData)) {
                 $isDefault = !count($fData);
             } else {
                 if (!is_array($val['default'])) {
                     $isDefault = $fData === $val['default'];
                 }
             }
             if (!$isDefault) {
                 $this->jsSettings['tableSettings'][$this->tName]['fieldSettings'][$fieldName][$pageType][$val['jsName']] = $fData;
             }
         }
         $this->jsSettings['tableSettings'][$this->tName]['isUseCK'] = $this->isUseCK;
         if (count($this->googleMapCfg) != 0 && $this->googleMapCfg['isUseGoogleMap']) {
             $this->jsSettings['tableSettings'][$this->tName]['isUseGoogleMap'] = true;
             $this->jsSettings['tableSettings'][$this->tName]['googleMapCfg'] = $this->googleMapCfg;
         }
         $lookupTableName = $pSet->getLookupTable($tableFieldName);
         if ($lookupTableName) {
             $this->jsSettings['global']['shortTNames'][$lookupTableName] = GetTableURL($lookupTableName);
         }
         if ($pSet->getEditFormat($tableFieldName) == 'Time') {
             $this->fillTimePickSettings($tableFieldName, "", $pSet, $pageType);
         }
     }
 }
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:56,代码来源:searchpage_dash.php

示例11: ProjectSettings

    $requestAction = $_REQUEST['_action'];
}
$pSet = new ProjectSettings($strTableName, $pageType);
if ($requestAction == "POST") {
    if ($pageType == PAGE_ADD && !$pSet->appearOnAddPage($field) && !$pSet->appearOnInlineAdd($field) || $pageType == PAGE_EDIT && !$pSet->appearOnEditPage($field) && !$pSet->appearOnInlineEdit($field) || $pageType == PAGE_REGISTER && !$pSet->appearOnRegisterOrSearchPage($field, $pageType) || $pageType != PAGE_ADD && $pageType != PAGE_EDIT && $pageType != PAGE_REGISTER) {
        exit("You have no permissions for this action");
    }
} else {
    if (!$pSet->checkFieldPermissions($field) && ($pageType != PAGE_ADD || !$pSet->appearOnAddPage($field) && !$pSet->appearOnInlineAdd($field))) {
        exit("You have no permissions for this action");
    }
}
if (!$isPDF) {
    add_nocache_headers();
}
include_once "include/" . GetTableURL($strTableName) . "_variables.php";
//	check if logged in
if ($requestAction == 'POST') {
    $havePermission = CheckSecurity(@$_SESSION["_" . $strTableName . "_OwnerID"], "Add") || CheckSecurity(@$_SESSION["_" . $strTableName . "_OwnerID"], "Edit");
} else {
    $havePermission = CheckSecurity(@$_SESSION["_" . $strTableName . "_OwnerID"], "Search");
}
if (!isLogged() && $pageType != PAGE_REGISTER || !$havePermission) {
    header("Location: login.php");
    return;
}
require_once getabspath('classes/uploadhandler.php');
$upload_handler = new UploadHandler(getOptionsForMultiUpload($pSet, $field));
$upload_handler->pSet = $pSet;
$upload_handler->field = $field;
$upload_handler->table = $strTableName;
开发者ID:aagusti,项目名称:padl-tng,代码行数:31,代码来源:mfhandler.php

示例12: getRedirectForMenuPage

 /**
  * Get redirect location for menu page
  * @return {mixed}
  */
 function getRedirectForMenuPage()
 {
     $allowedMenuItems = 0;
     $redirect = '';
     for ($i = 0; $i < count($this->menuTables); $i++) {
         $tName = $this->menuTables[$i]['tName'];
         $nType = $this->menuTables[$i]['nType'];
         if ($this->permis[$tName]['add'] || $this->permis[$tName]['search']) {
             $pageType = "";
             if ($this->permis[$tName]['search'] && ($nType == titTABLE || $nType == titVIEW)) {
                 $pageType = "list";
                 if ($this->permis[$tName]['add']) {
                     $strPerm = GetUserPermissions($tName);
                 }
                 if (isset($strPerm) && strpos($strPerm, "A") !== false && strpos($strPerm, "S") === false) {
                     $pageType = "add";
                 }
             } elseif ($this->permis[$tName]['add'] && ($nType == titTABLE || $nType == titVIEW)) {
                 $pageType = "add";
             } elseif ($nType == titREPORT) {
                 $pageType = "report";
             } elseif ($nType == titCHART) {
                 $pageType = "chart";
             }
             $redirect = GetTableURL($tName) . '_' . $pageType . ".php";
             $allowedMenuItems++;
         }
     }
     if ($this->isDynamicPerm && IsAdmin()) {
         $redirect = "admin_rights_list.php";
         $allowedMenuItems++;
     }
     if ($this->isAddWebRep) {
         $redirect = "webreport.php";
         $allowedMenuItems++;
     }
     if ($allowedMenuItems < 2) {
         return $redirect;
     }
     return false;
 }
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:45,代码来源:runnerpage.php

示例13: CrossTableReport

 /**
  * @constructor
  * @param Array rpt_array
  * @param String strSQL
  */
 function CrossTableReport($rpt_array, $strSQL)
 {
     $this->xml_array = $rpt_array;
     if ($rpt_array["table_type"]) {
         $this->table_type = $rpt_array["table_type"];
     }
     if ($rpt_array["fromWizard"]) {
         $this->fromWizard = true;
     }
     $this->tableName = $this->xml_array["tables"][0];
     $this->setDbConnection();
     $this->shortTableName = GetTableURL($this->tableName);
     if (strlen($this->shortTableName) == 0) {
         $this->shortTableName = $this->tableName;
     }
     $this->pSet = new ProjectSettings($this->tableName, PAGE_REPORT);
     if ($this->fromWizard) {
         include_once getabspath("classes/controls/ViewControlsContainer.php");
         $this->viewControls = new ViewControlsContainer($this->pSet, PAGE_REPORT);
         $this->tableKeys = $this->pSet->getTableKeys();
         if ($rpt_array["dashBased"]) {
             $this->dashBased = true;
             $this->dashTName = $rpt_array["dashTName"];
         }
     }
     $this->setSessionPrefix($rpt_array["sessionPrefix"]);
     $this->fillSessionVariables();
     $this->dataField = $this->getDataField($_SESSION[$this->sessionPrefix . "_field"]);
     if (!strlen($this->dataField)) {
         $this->dataField = $_SESSION['webreports']['group_fields'][0]["name"];
     }
     $this->initDataFieldSettings();
     $this->initDataGroupFunction($_SESSION[$this->sessionPrefix . "_group_func"]);
     // assign index_field_x, index_field_y properties
     $this->setAxisFieldsIndices();
     $crtableSQL = $this->getstrSQL($strSQL);
     $qResult = $this->connection->query($crtableSQL);
     $group_y = array();
     $group_x = array();
     $sort_y = array();
     $arrdata = array();
     $arravgsum = array();
     $arravgcount = array();
     $avgsumx = array();
     $avgcountx = array();
     while ($data = $qResult->fetchNumeric()) {
         if (!in_array($data[1], $group_y)) {
             $group_y[] = $data[1];
             $sort_y[] = count($sort_y);
         }
         if (!in_array($data[2], $group_x)) {
             $group_x[] = $data[2];
             $this->col_summary["data"][count($group_x) - 1]["col_summary"] = "&nbsp;";
             $this->col_summary["data"][count($group_x) - 1]["id_col_summary"] = "total_x_" . (count($group_x) - 1);
         }
         $key_y = array_search($data[1], $group_y);
         $key_x = array_search($data[2], $group_x);
         $avgsumx[$key_x] = 0;
         $avgcountx[$key_x] = 0;
         if (!$this->is_value_empty) {
             $arrdata[$key_y][$key_x] = $data[0];
             $arravgsum[$key_y][$key_x] = $data[3];
             $arravgcount[$key_y][$key_x] = $data[4];
         } else {
             $arrdata[$key_y][$key_x] = "&nbsp;";
         }
     }
     //	sort y groups
     global $group_sort_y;
     $group_sort_y = $group_y;
     SortForCrosstable($sort_y);
     foreach ($sort_y as $key_y) {
         $value_y = $group_y[$key_y];
         $this->rowinfo[$key_y]["row_summary"] = "&nbsp;";
         $this->rowinfo[$key_y]["group_y"] = $this->getAxisDisplayValue($this->index_field_y, $value_y);
         foreach ($group_x as $key_x => $value_x) {
             if (array_key_exists($key_y, $arrdata)) {
                 $rowValue = "&nbsp;";
                 if (array_key_exists($key_x, $arrdata[$key_y]) && !$this->is_value_empty && !is_null($arrdata[$key_y][$key_x])) {
                     $rowValue = $arrdata[$key_y][$key_x];
                     if ($this->dataGroupFunction == "avg") {
                         $rowValue = round($rowValue, 2);
                     }
                 }
                 $this->rowinfo[$key_y]["row_record"]["data"][$key_x]["row_value"] = $rowValue;
                 $this->rowinfo[$key_y]["row_record"]["data"][$key_x]["id_data"] = $key_y . "_" . $key_x;
             }
         }
         $this->rowinfo[$key_y]["id_row_summary"] = "total_y_" . $key_y;
     }
     foreach ($group_x as $key_x => $value_x) {
         if ($value_x != "") {
             $this->group_header["data"][$key_x]["gr_value"] = $this->getAxisDisplayValue($this->index_field_x, $value_x);
         } else {
             $this->group_header["data"][$key_x]["gr_value"] = "&nbsp;";
//.........这里部分代码省略.........
开发者ID:kcallow,项目名称:MatchMe,代码行数:101,代码来源:crosstable_report.php

示例14: getShorteningTextAndMoreLink

 /**
  * Get the More link following the truncated and highlighted field's content
  * @param String value				The field's content
  * @param Number cNumberOfChars		
  * @param String keylink	
  * @param Boolean isLookup			An indicator showing if this is a lookup list page control. 
  *									It's alway equal to false for the view as HTML field	
  * @return String	
  */
 protected function getShorteningTextAndMoreLink($value, $cNumberOfChars, $keylink, $isLookup)
 {
     $data = $this->getPocessedHTMLValueData($value, $cNumberOfChars);
     $isTruncated = $data["isTruncated"];
     $processedValue = $data["value"];
     if ($this->searchHighlight) {
         if ($isTruncated) {
             $processedValue = $this->highlightTruncatedBeforeMore($value, $processedValue, $cNumberOfChars, $data["truncLength"]);
         } else {
             $processedValue = $this->highlightSearchWord($processedValue, false, "");
         }
     }
     if ($isTruncated) {
         $tName = $this->getContainer()->tName;
         $params = 'pagetype=' . $this->container->pSet->_viewPage . '&table=' . GetTableURL($tName) . '&field=' . rawurlencode($this->field) . $keylink;
         $link = ' <a href="javascript:void(0);" data-query="' . GetTableLink("fulltext") . '?' . $params . '">' . "More" . '&nbsp;...</a>';
         $processedValue .= $link;
     }
     return $processedValue;
 }
开发者ID:ryanblanchard,项目名称:Dashboard,代码行数:29,代码来源:ViewHTMLField.php

示例15: getPageLayout

 /**
  * Get the page's layout
  * @return {string}
  */
 function getPageLayout($tName = "", $pageType = "", $suffix = "")
 {
     global $page_layouts;
     if (!$tName) {
         $tName = $this->tName;
     }
     if (!$pageType) {
         $pageType = $this->pageType;
     }
     $templateName = GetTableURL($tName) . "_" . $pageType;
     if ($suffix) {
         $templateName = $templateName . "_" . $suffix;
     }
     if (!$this->isPageTableBased() || $this->pageType == PAGE_REGISTER) {
         //the name of the non table page's layout
         $templateName = $pageType;
     }
     return $page_layouts[$templateName];
 }
开发者ID:sdev1,项目名称:CloudStockEnquiry,代码行数:23,代码来源:runnerpage.php


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