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


PHP ProcessLargeText函数代码示例

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


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

示例1: array

 $row = array();
 $row["grid_record"] = array();
 $row["grid_record"]["data"] = array();
 for ($col = 1; $data && ($all || $recno <= $PageSize) && $col <= 1; $col++) {
     $record = array();
     $recno++;
     $records++;
     $keylink = "";
     $keylink .= "&key1=" . htmlspecialchars(rawurlencode(@$data["Units"]));
     //	Units -
     $value = "";
     $value = ProcessLargeText(GetData($data, "Units", ""), "field=Units" . $keylink, "", MODE_PRINT);
     $record["Units_value"] = $value;
     //	PerUnit Price - Number
     $value = "";
     $value = ProcessLargeText(GetData($data, "PerUnit Price", "Number"), "field=PerUnit+Price" . $keylink, "", MODE_PRINT);
     $record["PerUnit_Price_value"] = $value;
     if ($col < $colsonpage) {
         $record["endrecord_block"] = true;
     }
     $record["grid_recordheader"] = true;
     $record["grid_vrecord"] = true;
     if ($eventObj->exists("BeforeMoveNextPrint")) {
         $eventObj->BeforeMoveNextPrint($data, $row, $record);
     }
     $row["grid_record"]["data"][] = $record;
     if ($eventObj->exists("ListFetchArray")) {
         $data = $eventObj->ListFetchArray($rs);
     } else {
         $data = db_fetch_array($rs);
     }
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:31,代码来源:Electricity_Rates_print.php

示例2: array

 $record = array();
 $recno++;
 $records++;
 $keylink = "";
 $keylink .= "&key1=" . htmlspecialchars(rawurlencode(@$data["UserID"]));
 //	UserID -
 $value = "";
 $value = ProcessLargeText(GetData($data, "UserID", ""), "field=UserID" . $keylink, "", MODE_PRINT);
 $record["UserID_value"] = $value;
 //	Password -
 $value = "";
 $value = ProcessLargeText(GetData($data, "Password", ""), "field=Password" . $keylink, "", MODE_PRINT);
 $record["Password_value"] = $value;
 //	User Name -
 $value = "";
 $value = ProcessLargeText(GetData($data, "User Name", ""), "field=User+Name" . $keylink, "", MODE_PRINT);
 $record["User_Name_value"] = $value;
 //	Role -
 $value = "";
 $value = DisplayLookupWizard("Role", $data["Role"], $data, $keylink, MODE_PRINT);
 $record["Role_value"] = $value;
 if ($col < $colsonpage) {
     $record["endrecord_block"] = true;
 }
 $record["grid_recordheader"] = true;
 $record["grid_vrecord"] = true;
 if ($eventObj->exists("BeforeMoveNextPrint")) {
     $eventObj->BeforeMoveNextPrint($data, $row, $record);
 }
 $row["grid_record"]["data"][] = $record;
 if ($eventObj->exists("ListFetchArray")) {
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:31,代码来源:System_Users_print.php

示例3: GetData

 //IsSync - Checkbox
 $value = "";
 $value = GetData($data, "IsSync", "Checkbox");
 if ($mainTableOwnerID == "IsSync") {
     $ownerIdValue = $value;
 }
 $xt->assign("IsSync_value", $value);
 if (!$pageObject->isAppearOnTabs("IsSync")) {
     $xt->assign("IsSync_fieldblock", true);
 } else {
     $xt->assign("IsSync_tabfieldblock", true);
 }
 ////////////////////////////////////////////
 //Currunt Readings -
 $value = "";
 $value = ProcessLargeText(GetData($data, "Currunt Readings", ""), "", "", MODE_VIEW);
 if ($mainTableOwnerID == "Currunt Readings") {
     $ownerIdValue = $value;
 }
 $xt->assign("Currunt_Readings_value", $value);
 if (!$pageObject->isAppearOnTabs("Currunt Readings")) {
     $xt->assign("Currunt_Readings_fieldblock", true);
 } else {
     $xt->assign("Currunt_Readings_tabfieldblock", true);
 }
 /*$jsKeysObj = 'window.recKeysObj = {';
 	$jsKeysObj .= "'".jsreplace("Record ID")."': '".(jsreplace(@$data["Record ID"]))."', ";
 $jsKeysObj = substr($jsKeysObj, 0, strlen($jsKeysObj)-2);
 $jsKeysObj .= '};';
 $pageObject->AddJsCode($jsKeysObj);	
 */
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:31,代码来源:Readings_view.php

示例4: DisplayMasterTableInfo_Customers

function DisplayMasterTableInfo_Customers($params)
{
    $detailtable = $params["detailtable"];
    $keys = $params["keys"];
    global $conn, $strTableName;
    $xt = new Xtempl();
    $oldTableName = $strTableName;
    $strTableName = "dbo.Customers";
    //$strSQL = "SELECT ID,   Name,   [Father Name],   Address,   Contact,   Location,   [Customer Type]  FROM dbo.Customers";
    $sqlHead = "SELECT ID,   Name,   [Father Name],   Address,   Contact,   Location,   [Customer Type]";
    $sqlFrom = "FROM dbo.Customers";
    $sqlWhere = "";
    $sqlTail = "";
    $where = "";
    $mKeys = array();
    $showKeys = "";
    global $page_styles, $page_layouts, $page_layout_names, $container_styles;
    $layout = new TLayout("masterlist", "BoldOrange", "MobileOrange");
    $layout->blocks["bare"] = array();
    $layout->containers["0"] = array();
    $layout->containers["0"][] = array("name" => "masterlistheader", "block" => "", "substyle" => 1);
    $layout->skins["0"] = "empty";
    $layout->blocks["bare"][] = "0";
    $layout->containers["mastergrid"] = array();
    $layout->containers["mastergrid"][] = array("name" => "masterlistfields", "block" => "", "substyle" => 1);
    $layout->skins["mastergrid"] = "grid";
    $layout->blocks["bare"][] = "mastergrid";
    $page_layouts["Customers_masterlist"] = $layout;
    if ($detailtable == "dbo.Customer Module Assignment") {
        $where .= GetFullFieldName("ID") . "=" . make_db_value("ID", $keys[1 - 1]);
        $showKeys .= " " . GetFieldLabel("dbo_Customers", "ID") . ": " . $keys[1 - 1];
        $xt->assign('showKeys', $showKeys);
    }
    if (!$where) {
        $strTableName = $oldTableName;
        return;
    }
    $str = SecuritySQL("Search");
    if (strlen($str)) {
        $where .= " and " . $str;
    }
    $strWhere = whereAdd($sqlWhere, $where);
    if (strlen($strWhere)) {
        $strWhere = " where " . $strWhere . " ";
    }
    $strSQL = $sqlHead . ' ' . $sqlFrom . $strWhere . $sqlTail;
    //	$strSQL=AddWhere($strSQL,$where);
    LogInfo($strSQL);
    $rs = db_query($strSQL, $conn);
    $data = db_fetch_array($rs);
    if (!$data) {
        $strTableName = $oldTableName;
        return;
    }
    $keylink = "";
    $keylink .= "&key1=" . htmlspecialchars(rawurlencode(@$data["ID"]));
    //	ID -
    $value = "";
    $value = ProcessLargeText(GetData($data, "ID", ""), "field=ID" . $keylink);
    $xt->assign("ID_mastervalue", $value);
    //	Name -
    $value = "";
    $value = ProcessLargeText(GetData($data, "Name", ""), "field=Name" . $keylink);
    $xt->assign("Name_mastervalue", $value);
    //	Father Name -
    $value = "";
    $value = ProcessLargeText(GetData($data, "Father Name", ""), "field=Father+Name" . $keylink);
    $xt->assign("Father_Name_mastervalue", $value);
    //	Address -
    $value = "";
    $value = ProcessLargeText(GetData($data, "Address", ""), "field=Address" . $keylink);
    $xt->assign("Address_mastervalue", $value);
    //	Contact -
    $value = "";
    $value = ProcessLargeText(GetData($data, "Contact", ""), "field=Contact" . $keylink);
    $xt->assign("Contact_mastervalue", $value);
    //	Location -
    $value = "";
    $value = DisplayLookupWizard("Location", $data["Location"], $data, $keylink, MODE_LIST);
    $xt->assign("Location_mastervalue", $value);
    //	Customer Type -
    $value = "";
    $value = DisplayLookupWizard("Customer Type", $data["Customer Type"], $data, $keylink, MODE_LIST);
    $xt->assign("Customer_Type_mastervalue", $value);
    $xt->display("Customers_masterlist.htm");
    $strTableName = $oldTableName;
}
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:87,代码来源:Customers_masterlist.php

示例5: ProcessLargeText

        $row["ID_value"] = $value;
        //	Name -
        $value = "";
        $value = ProcessLargeText(GetData($data, "Name", ""), "field=Name" . $keylink, "", MODE_PRINT);
        $row["Name_value"] = $value;
        //	Father Name -
        $value = "";
        $value = ProcessLargeText(GetData($data, "Father Name", ""), "field=Father+Name" . $keylink, "", MODE_PRINT);
        $row["Father_Name_value"] = $value;
        //	Address -
        $value = "";
        $value = ProcessLargeText(GetData($data, "Address", ""), "field=Address" . $keylink, "", MODE_PRINT);
        $row["Address_value"] = $value;
        //	Contact -
        $value = "";
        $value = ProcessLargeText(GetData($data, "Contact", ""), "field=Contact" . $keylink, "", MODE_PRINT);
        $row["Contact_value"] = $value;
        //	Location -
        $value = "";
        $value = DisplayLookupWizard("Location", $data["Location"], $data, $keylink, MODE_PRINT);
        $row["Location_value"] = $value;
        //	Customer Type -
        $value = "";
        $value = DisplayLookupWizard("Customer Type", $data["Customer Type"], $data, $keylink, MODE_PRINT);
        $row["Customer_Type_value"] = $value;
        $rowinfo[] = $row;
    }
    $xt->assign_loopsection("details_row", $rowinfo);
} else {
}
$xt->display("Customers_detailspreview.htm");
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:31,代码来源:Customers_detailspreview.php

示例6: array

 $row = array();
 $row["grid_record"] = array();
 $row["grid_record"]["data"] = array();
 for ($col = 1; $data && ($all || $recno <= $PageSize) && $col <= 1; $col++) {
     $record = array();
     $recno++;
     $records++;
     $keylink = "";
     $keylink .= "&key1=" . htmlspecialchars(rawurlencode(@$data["Code"]));
     //	Code -
     $value = "";
     $value = ProcessLargeText(GetData($data, "Code", ""), "field=Code" . $keylink, "", MODE_PRINT);
     $record["Code_value"] = $value;
     //	Action -
     $value = "";
     $value = ProcessLargeText(GetData($data, "Action", ""), "field=Action" . $keylink, "", MODE_PRINT);
     $record["Action_value"] = $value;
     if ($col < $colsonpage) {
         $record["endrecord_block"] = true;
     }
     $record["grid_recordheader"] = true;
     $record["grid_vrecord"] = true;
     if ($eventObj->exists("BeforeMoveNextPrint")) {
         $eventObj->BeforeMoveNextPrint($data, $row, $record);
     }
     $row["grid_record"]["data"][] = $record;
     if ($eventObj->exists("ListFetchArray")) {
         $data = $eventObj->ListFetchArray($rs);
     } else {
         $data = db_fetch_array($rs);
     }
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:31,代码来源:Actions_print.php

示例7: ProcessLargeText

 $record["Previous_Readings_value"] = $value;
 //	Currunt Readings -
 $value = "";
 $value = ProcessLargeText(GetData($data, "Currunt Readings", ""), "field=Currunt+Readings" . $keylink, "", MODE_PRINT);
 $record["Currunt_Readings_value"] = $value;
 //	Unit Consumed -
 $value = "";
 $value = ProcessLargeText(GetData($data, "Unit Consumed", ""), "field=Unit+Consumed" . $keylink, "", MODE_PRINT);
 $record["Unit_Consumed_value"] = $value;
 //	Bill Amount -
 $value = "";
 $value = ProcessLargeText(GetData($data, "Bill Amount", ""), "field=Bill+Amount" . $keylink, "", MODE_PRINT);
 $record["Bill_Amount_value"] = $value;
 //	Due Date -
 $value = "";
 $value = ProcessLargeText(GetData($data, "Due Date", ""), "field=Due+Date" . $keylink, "", MODE_PRINT);
 $record["Due_Date_value"] = $value;
 if ($col < $colsonpage) {
     $record["endrecord_block"] = true;
 }
 $record["grid_recordheader"] = true;
 $record["grid_vrecord"] = true;
 if ($eventObj->exists("BeforeMoveNextPrint")) {
     $eventObj->BeforeMoveNextPrint($data, $row, $record);
 }
 $row["grid_record"]["data"][] = $record;
 if ($eventObj->exists("ListFetchArray")) {
     $data = $eventObj->ListFetchArray($rs);
 } else {
     $data = db_fetch_array($rs);
 }
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:31,代码来源:Month_Billings_print.php

示例8: array

$fieldsArr[] = $arr;
$arr = array();
$arr['fName'] = "Module ID";
$arr['viewFormat'] = ViewFormat("Module ID", $strTableName);
$fieldsArr[] = $arr;
$mainTableOwnerID = GetTableData($strTableName, ".mainTableOwnerID", '');
$ownerIdValue = "";
$pageObject->setGoogleMapsParams($fieldsArr);
while ($data) {
    $xt->assign("show_key1", htmlspecialchars(GetData($data, "ID", "")));
    $keylink = "";
    $keylink .= "&key1=" . htmlspecialchars(rawurlencode(@$data["ID"]));
    ////////////////////////////////////////////
    //ID -
    $value = "";
    $value = ProcessLargeText(GetData($data, "ID", ""), "", "", MODE_VIEW);
    if ($mainTableOwnerID == "ID") {
        $ownerIdValue = $value;
    }
    $xt->assign("ID_value", $value);
    if (!$pageObject->isAppearOnTabs("ID")) {
        $xt->assign("ID_fieldblock", true);
    } else {
        $xt->assign("ID_tabfieldblock", true);
    }
    ////////////////////////////////////////////
    //Customer ID -
    $value = "";
    $value = DisplayLookupWizard("Customer ID", $data["Customer ID"], $data, $keylink, MODE_VIEW);
    if ($mainTableOwnerID == "Customer ID") {
        $ownerIdValue = $value;
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:31,代码来源:Customer_Module_Assignment_view.php

示例9: ProcessLargeText

 //Code -
 $value = "";
 $value = ProcessLargeText(GetData($data, "Code", ""), "", "", MODE_VIEW);
 if ($mainTableOwnerID == "Code") {
     $ownerIdValue = $value;
 }
 $xt->assign("Code_value", $value);
 if (!$pageObject->isAppearOnTabs("Code")) {
     $xt->assign("Code_fieldblock", true);
 } else {
     $xt->assign("Code_tabfieldblock", true);
 }
 ////////////////////////////////////////////
 //Condition -
 $value = "";
 $value = ProcessLargeText(GetData($data, "Condition", ""), "", "", MODE_VIEW);
 if ($mainTableOwnerID == "Condition") {
     $ownerIdValue = $value;
 }
 $xt->assign("Condition_value", $value);
 if (!$pageObject->isAppearOnTabs("Condition")) {
     $xt->assign("Condition_fieldblock", true);
 } else {
     $xt->assign("Condition_tabfieldblock", true);
 }
 /*$jsKeysObj = 'window.recKeysObj = {';
 	$jsKeysObj .= "'".jsreplace("Code")."': '".(jsreplace(@$data["Code"]))."', ";
 $jsKeysObj = substr($jsKeysObj, 0, strlen($jsKeysObj)-2);
 $jsKeysObj .= '};';
 $pageObject->AddJsCode($jsKeysObj);	
 */
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:31,代码来源:LU_Module_Condition_view.php

示例10: proccessRecordValue

 function proccessRecordValue(&$data, &$keylink, $listFieldInfo)
 {
     if (NeedEncode($listFieldInfo['fName'], $this->tName) && $this->customField == $listFieldInfo['fName']) {
         $value = ProcessLargeText(GetData($data, $this->linkField, $listFieldInfo['viewFormat']), "field=" . rawurlencode($listFieldInfo['fName']) . $keylink, "", MODE_LIST);
     } else {
         $value = parent::proccessRecordValue($data, $keylink, $listFieldInfo);
     }
     if ($this->lookupSelectField == $listFieldInfo['fName']) {
         $value = '<a href="#" type="lookupSelect' . $this->id . '">' . $value . "</a>";
     }
     return $value;
 }
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:12,代码来源:listpage_lookup.php

示例11: proccessRecordValue


//.........这里部分代码省略.........
                 }
                 if (strlen($data[$listFieldInfo['fName']])) {
                     $value = "<a href='getfile.php?table=" . $this->shortTableName . "&filename=" . rawurlencode($fileName) . "&field=" . rawurlencode($listFieldInfo['fName']) . $keylink . "'>";
                     $value .= htmlspecialchars($fileName);
                     $value .= "</a>";
                 }
             } else {
                 if ($listFieldInfo['viewFormat'] == FORMAT_AUDIO) {
                     $fileName = GetData($data, $listFieldInfo['fName'], FORMAT_NONE);
                     $fieldIsUrl = GetFieldData($this->tName, $listFieldInfo['fName'], "fieldIsVideoUrl", false);
                     if (strlen($fileName)) {
                         $absFileName = "";
                         if (!$fieldIsUrl && GetFieldData($this->tName, $listFieldInfo['fName'], "Absolute", false)) {
                             $absFileName = GetUploadFolder($listFieldInfo['fName']) . $fileName;
                         } elseif (!$fieldIsUrl) {
                             $absFileName = getabspath(GetUploadFolder($listFieldInfo['fName']) . $fileName);
                         }
                         // if file
                         if ($fieldIsUrl || file_exists($absFileName)) {
                             $titleField = GetFieldData($this->tName, $listFieldInfo['fName'], 'audioTitleField', "");
                             $title = "";
                             if ($titleField) {
                                 $title = htmlspecialchars(GetData($data, $titleField, ViewFormat($titleField, $titleField)));
                             }
                             if ($fieldIsUrl) {
                                 $href = $fileName;
                             } else {
                                 $href = 'download.php?table=' . $this->shortTableName . '&field=' . rawurlencode($listFieldInfo['fName']) . $keylink;
                             }
                             $value = '<a class="htrack" type="audio/mpeg" title="' . $title . '" href="' . $href . '">' . $title . '</a>';
                         }
                     }
                 } else {
                     if ($listFieldInfo['viewFormat'] == FORMAT_DATABASE_AUDIO) {
                         $titleField = GetFieldData($this->tName, $listFieldInfo['fName'], 'audioTitleField', "");
                         $title = "";
                         if ($titleField) {
                             $title = htmlspecialchars(GetData($data, $titleField, ViewFormat($titleField, $titleField)));
                         }
                         if (@$data[$listFieldInfo['fName']] != NULL) {
                             $value = '<a class="htrack" type="audio/mpeg" title="' . $title . '" href="getfile.php?table=' . $this->shortTableName . '&field=' . rawurlencode($listFieldInfo['fName']) . $keylink . '">' . $title . '</a>';
                         } else {
                             $value = $title;
                         }
                     } else {
                         if ($listFieldInfo['viewFormat'] == FORMAT_VIDEO) {
                             $value = "";
                             $fieldIsUrl = GetFieldData($this->tName, $listFieldInfo['fName'], "fieldIsVideoUrl", false);
                             $fileName = GetData($data, $listFieldInfo['fName'], FORMAT_NONE);
                             if (strlen($fileName)) {
                                 $absFileName = "";
                                 if (!$fieldIsUrl && GetFieldData($this->tName, $listFieldInfo['fName'], "Absolute", false)) {
                                     $absFileName = GetUploadFolder($listFieldInfo['fName']) . $fileName;
                                 } elseif (!$fieldIsUrl) {
                                     $absFileName = getabspath(GetUploadFolder($listFieldInfo['fName']) . $fileName);
                                 }
                                 // if file
                                 if ($fieldIsUrl || file_exists($absFileName)) {
                                     $videoId = 'video_' . GoodFieldName(htmlspecialchars($listFieldInfo['fName'])) . '_' . $this->recId;
                                     if ($fieldIsUrl) {
                                         $href = $fileName;
                                     } else {
                                         $href = 'download.php?table=' . $this->shortTableName . '&field=' . rawurlencode($listFieldInfo['fName']) . $keylink;
                                     }
                                     $value = '<a href="' . $href . '" style="display:block;width:' . GetFieldData($this->tName, $listFieldInfo['fName'], 'videoWidth', "") . 'px;height:' . GetFieldData($this->tName, $listFieldInfo['fName'], 'videoHeight', "") . 'px;" id="' . $videoId . '"></a>';
                                     $this->controlsMap['video'][] = $videoId;
                                 }
                             }
                         } else {
                             if ($listFieldInfo['viewFormat'] == FORMAT_DATABASE_VIDEO) {
                                 if (@$data[$listFieldInfo['fName']] != NULL) {
                                     $videoId = 'video_' . GoodFieldName(htmlspecialchars($listFieldInfo['fName'])) . '_' . $this->recId;
                                     $value = '<a href="getfile.php?table=' . $this->shortTableName . '&field=' . rawurlencode($listFieldInfo['fName']) . $keylink . '" style="display:block;width:' . GetFieldData($this->tName, $listFieldInfo['fName'], 'videoWidth', 0) . 'px;height:' . GetFieldData($this->tName, $listFieldInfo['fName'], 'videoHeight', 0) . 'px;" id="' . $videoId . '"></a>';
                                     $this->controlsMap['video'][] = $videoId;
                                 }
                             } else {
                                 if ($listFieldInfo['viewFormat'] == FORMAT_MAP) {
                                     $value = '<div id="littleMap_' . GoodFieldName($listFieldInfo['fName']) . '_' . $this->recId . '" style="width: ' . $this->googleMapCfg['fieldsAsMap'][$listFieldInfo['fName']]['width'] . 'px; height: ' . $this->googleMapCfg['fieldsAsMap'][$listFieldInfo['fName']]['height'] . 'px;"></div>';
                                 } else {
                                     if (($listFieldInfo['editFormat'] == EDIT_FORMAT_LOOKUP_WIZARD || $listFieldInfo['editFormat'] == EDIT_FORMAT_RADIO) && GetLookupType($listFieldInfo['fName'], $this->tName) == LT_LOOKUPTABLE && GetLWLinkField($listFieldInfo['fName'], $this->tName) != GetLWDisplayField($listFieldInfo['fName'], $this->tName)) {
                                         $value = DisplayLookupWizard($listFieldInfo['fName'], $data[$listFieldInfo['fName']], $data, $keylink, MODE_LIST);
                                     } else {
                                         if (NeedEncode($listFieldInfo['fName'], $this->tName)) {
                                             $value = ProcessLargeText(GetData($data, $listFieldInfo['fName'], $listFieldInfo['viewFormat']), "field=" . rawurlencode($listFieldInfo['fName']) . $keylink, "", MODE_LIST);
                                         } else {
                                             $value = GetData($data, $listFieldInfo['fName'], $listFieldInfo['viewFormat']);
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
     // create address field as center link
     $value = $this->addCenterLink($value, $listFieldInfo['fName']);
     return $value;
 }
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:101,代码来源:listpage.php

示例12: ProcessLargeText

 //Password -
 $value = "";
 $value = ProcessLargeText(GetData($data, "Password", ""), "", "", MODE_VIEW);
 if ($mainTableOwnerID == "Password") {
     $ownerIdValue = $value;
 }
 $xt->assign("Password_value", $value);
 if (!$pageObject->isAppearOnTabs("Password")) {
     $xt->assign("Password_fieldblock", true);
 } else {
     $xt->assign("Password_tabfieldblock", true);
 }
 ////////////////////////////////////////////
 //User Name -
 $value = "";
 $value = ProcessLargeText(GetData($data, "User Name", ""), "", "", MODE_VIEW);
 if ($mainTableOwnerID == "User Name") {
     $ownerIdValue = $value;
 }
 $xt->assign("User_Name_value", $value);
 if (!$pageObject->isAppearOnTabs("User Name")) {
     $xt->assign("User_Name_fieldblock", true);
 } else {
     $xt->assign("User_Name_tabfieldblock", true);
 }
 ////////////////////////////////////////////
 //Role -
 $value = "";
 $value = DisplayLookupWizard("Role", $data["Role"], $data, $keylink, MODE_VIEW);
 if ($mainTableOwnerID == "Role") {
     $ownerIdValue = $value;
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:31,代码来源:System_Users_view.php

示例13: getFormattedRow


//.........这里部分代码省略.........
                     if ($this->fieldsArr[$i]['imageWidth']) {
                         $val .= " width=" . $this->fieldsArr[$i]['imageWidth'];
                     }
                     if ($this->fieldsArr[$i]['imageHeight']) {
                         $val .= " height=" . $this->fieldsArr[$i]['imageHeight'];
                     }
                     $val .= " border=0";
                     if (isEnableSection508()) {
                         $val .= " alt=\"Image from DB\"";
                     }
                     $val .= " src=\"imager.php?table=" . $this->shortTName . "&field=" . rawurlencode(htmlspecialchars($this->fieldsArr[$i]['name'])) . $keylink . "\">";
                 }
             } else {
                 $val = mlang_message("LONG_BINARY");
             }
         } elseif ($this->fieldsArr[$i]['viewFormat'] == FORMAT_FILE_IMAGE) {
             if (!$this->forExport) {
                 if (CheckImageExtension($value[$this->fieldsArr[$i]['name']])) {
                     if ($this->fieldsArr[$i]['showThumb']) {
                         // show thumbnail
                         $thumbname = $this->fieldsArr[$i]['thumbnail'] . $value[$this->fieldsArr[$i]['name']];
                         if (substr($this->fieldsArr[$i]['strhlPrefix'], 0, 7) != "http://" && !myfile_exists(getabspath($this->fieldsArr[$i]['strhlPrefix'] . $thumbname))) {
                             $thumbname = $value[$this->fieldsArr[$i]['name']];
                         }
                         $val = "<a";
                         if (IsUseiBox($this->fieldsArr[$i]['name'], $this->tName)) {
                             $val .= " rel='ibox'";
                         } else {
                             $val .= " target=_blank";
                         }
                         $val .= " href=\"" . htmlspecialchars(AddLinkPrefix($this->fieldsArr[$i]['name'], $value[$this->fieldsArr[$i]['name']])) . "\">";
                         $val .= "<img";
                         if ($thumbname == $value[$this->fieldsArr[$i]['name']]) {
                             if ($this->fieldsArr[$i]['imageWidth']) {
                                 $val .= " width=" . $this->fieldsArr[$i]['imageWidth'];
                             }
                             if ($this->fieldsArr[$i]['imageHeight']) {
                                 $val .= " height=" . $this->fieldsArr[$i]['imageHeight'];
                             }
                         }
                         $val .= " border=0";
                         if (isEnableSection508()) {
                             $val .= " alt=\"" . htmlspecialchars($value[$this->fieldsArr[$i]['name']]) . "\"";
                         }
                         $val .= " src=\"" . htmlspecialchars(AddLinkPrefix($this->fieldsArr[$i]['name'], $thumbname)) . "\"></a>";
                     } else {
                         $val = "<img";
                         if ($this->fieldsArr[$i]['imageWidth']) {
                             $val .= " width=" . $this->fieldsArr[$i]['imageWidth'];
                         }
                         if ($this->fieldsArr[$i]['imageHeight']) {
                             $val .= " height=" . $this->fieldsArr[$i]['imageHeight'];
                         }
                         $val .= " border=0";
                         if (isEnableSection508()) {
                             $val .= " alt=\"" . htmlspecialchars($value[$this->fieldsArr[$i]['name']]) . "\"";
                         }
                         $val .= " src=\"" . htmlspecialchars(AddLinkPrefix($this->fieldsArr[$i]['name'], $value[$this->fieldsArr[$i]['name']])) . "\">";
                     }
                 }
             } else {
                 $val = mlang_message("LONG_BINARY");
             }
         } elseif ($this->fieldsArr[$i]['viewFormat'] == FORMAT_DATABASE_FILE) {
             if (!$this->forExport) {
                 if ($this->fieldsArr[$i]['fileName']) {
                     $filename = $value[$this->fieldsArr[$i]['fileName']];
                     if (!$filename) {
                         $filename = "file.bin";
                     }
                 } else {
                     $filename = "file.bin";
                 }
                 if (strlen($value[$this->fieldsArr[$i]['name']])) {
                     $val = "<a href=\"getfile.php?table=" . $this->shortTName . "&filename=" . rawurlencode($filename) . "&field=" . rawurlencode(htmlspecialchars($this->fieldsArr[$i]['name'])) . $keylink . "\">";
                     $val .= htmlspecialchars($filename);
                     $val .= "</a>";
                 }
             } else {
                 $val = mlang_message("LONG_BINARY");
             }
         } elseif (($this->fieldsArr[$i]['editFormat'] == EDIT_FORMAT_LOOKUP_WIZARD || $this->fieldsArr[$i]['editFormat'] == EDIT_FORMAT_RADIO) && GetLookupType($this->fieldsArr[$i]['name'], $this->tName) == LT_LOOKUPTABLE) {
             $val = DisplayLookupWizard($this->fieldsArr[$i]['name'], $value[$this->fieldsArr[$i]['name']], $value, $keylink, $this->mode);
         } elseif (NeedEncode($this->fieldsArr[$i]['name'], $this->tName)) {
             $val = ProcessLargeText(GetData($value, $this->fieldsArr[$i]['name'], $this->fieldsArr[$i]['viewFormat']), "field=" . rawurlencode($this->fieldsArr[$i]['name']) . $keylink, "", $this->mode);
         } else {
             //$val = GetData($value, $this->fieldsArr[$i]['name'], $this->fieldsArr[$i]['viewFormat']);
             if ($this->fieldsArr[$i]['viewFormat'] == FORMAT_CHECKBOX && $this->forExport) {
                 $val = GetData($value, $this->fieldsArr[$i]['name'], FORMAT_NONE);
             } else {
                 $val = GetData($value, $this->fieldsArr[$i]['name'], $this->fieldsArr[$i]['viewFormat']);
             }
         }
         $row[$this->fieldsArr[$i]['goodName'] . "_value"] = $val;
     }
     if ($this->repLayout == REPORT_BLOCK) {
         $row[GoodFieldName('nonewgroup')] = true;
     }
     return $row;
 }
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:101,代码来源:reportlib.php

示例14: checkForEncoding

 public function checkForEncoding($value, $keylink)
 {
     if ($this->container->pSet->NeedEncode($this->field) && $this->container->forExport != "excel" && $this->container->forExport != "csv") {
         $isMobileLookup = false;
         if (!is_null($this->pageObject)) {
             if ($this->pageObject->mode == LIST_LOOKUP && isMobile()) {
                 $isMobileLookup = true;
             }
         }
         if ($this->container->pageType == PAGE_ADD || $this->container->pageType == PAGE_EDIT) {
             $pageType = PAGE_LIST;
         } else {
             $pageType = $this->container->pageType;
         }
         $value = ProcessLargeText($this->container->pSet, $value, "field=" . rawurlencode($this->field) . $keylink, "", $pageType, "", $isMobileLookup, $this->container->pSet->isTableType() == "report");
     }
     return $value;
 }
开发者ID:aagusti,项目名称:padl-tng,代码行数:18,代码来源:ViewControl.php

示例15: DisplayLookupWizard

function DisplayLookupWizard($field, $value, $data, $keylink, $mode)
{
    global $conn, $strTableName;
    if (!strlen($value)) {
        return "";
    }
    $LookupSQL = "SELECT ";
    $LookupSQL .= GetLWDisplayField($field);
    $LookupSQL .= " FROM " . AddTableWrappers(GetLookupTable($field)) . " WHERE ";
    $where = "";
    $lookupvalue = $value;
    $iquery = "field=" . htmlspecialchars(rawurlencode($field)) . $keylink;
    $out = "";
    if (Multiselect($field)) {
        $arr = splitvalues($value);
        $numeric = true;
        $type = GetLWLinkFieldType($field);
        if (!$type) {
            foreach ($arr as $val) {
                if (strlen($val) && !is_numeric($val)) {
                    $numeric = false;
                    break;
                }
            }
        } else {
            $numeric = !NeedQuotes($type);
        }
        $in = "";
        foreach ($arr as $val) {
            if ($numeric && !strlen($val)) {
                continue;
            }
            if (strlen($in)) {
                $in .= ",";
            }
            if ($numeric) {
                $in .= $val + 0;
            } else {
                $in .= db_prepare_string($val);
            }
        }
        if (strlen($in)) {
            $LookupSQL .= GetLWLinkField($field) . " in (" . $in . ")";
            $where = GetLWWhere($field);
            if (strlen($where)) {
                $LookupSQL .= " and (" . $where . ")";
            }
            LogInfo($LookupSQL);
            $rsLookup = db_query($LookupSQL, $conn);
            $found = false;
            while ($lookuprow = db_fetch_numarray($rsLookup)) {
                $lookupvalue = $lookuprow[0];
                if ($found) {
                    $out .= ",";
                }
                $found = true;
                $out .= GetDataInt($lookupvalue, $data, $field, ViewFormat($field));
            }
            if ($found) {
                if (NeedEncode($field) && $mode != MODE_EXPORT) {
                    return ProcessLargeText($out, $iquery, "", $mode, GetEditFormat($field));
                } else {
                    return $out;
                }
            }
        }
    } else {
        $strdata = make_db_value($field, $value);
        $LookupSQL .= GetLWLinkField($field) . " = " . $strdata;
        $where = GetLWWhere($field);
        if (strlen($where)) {
            $LookupSQL .= " and (" . $where . ")";
        }
        LogInfo($LookupSQL);
        $rsLookup = db_query($LookupSQL, $conn);
        if ($lookuprow = db_fetch_numarray($rsLookup)) {
            $lookupvalue = $lookuprow[0];
        }
    }
    if (!$out) {
        $out = GetDataInt($lookupvalue, $data, $field, ViewFormat($field));
    }
    if (NeedEncode($field) && $mode != MODE_EXPORT) {
        $value = ProcessLargeText($out, $iquery, "", $mode, GetEditFormat($field));
    } else {
        $value = $out;
    }
    return $value;
}
开发者ID:samsulpendis,项目名称:Instant_Appointment,代码行数:89,代码来源:commonfunctions.php


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