當前位置: 首頁>>代碼示例>>PHP>>正文


PHP field::WithLabel方法代碼示例

本文整理匯總了PHP中field::WithLabel方法的典型用法代碼示例。如果您正苦於以下問題:PHP field::WithLabel方法的具體用法?PHP field::WithLabel怎麽用?PHP field::WithLabel使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在field的用法示例。


在下文中一共展示了field::WithLabel方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: GetListTable


//.........這裏部分代碼省略.........
             $result .= "<th width=30 align='center'>" . view . "</th>\n";
         }
         if ($this->edit != '') {
             $result .= "<th width=30 align='center'>" . edit . "</th>\n";
         }
         if ($this->delete == true) {
             $result .= "<th width=30><input type='checkbox' id='SelectAll'></th>\n";
         }
         $result .= "</tr>\n";
         $result .= "</thead>\n";
         $result .= "<tbody id='{$soratble}' class='sortable ui-sortable'>\n";
         $m = 1;
         if ($_REQUEST['action'] == 'add' && $this->isGridList == true) {
             if (count($this->types) > 0) {
                 $result .= "<tr>";
                 $result .= $this->getParametersToPassIt(true);
                 $result .= $this->getParametersToPassIt();
                 foreach ($this->columns as $col) {
                     $field_ob = new field();
                     $field_ob->SetIdField($col);
                     $field_ob->SetNameField($col);
                     $field_ob->SetCssClass($this->classes[$col]);
                     $required = $this->requireds[$col];
                     if ($required == "" && in_array($col, $this->requireds)) {
                         $required = "required";
                     }
                     $field_ob->SetRequiredField($required);
                     $field_ob->SetValueField($this->source[$col][3]);
                     $field_ob->SetTypeField($this->types[$col]);
                     $field_ob->SetTable($this->extendTables[$col][0]);
                     $field_ob->SetTname($this->extendTables[$col][1]);
                     $field_ob->SetTvalue($this->extendTables[$col][2]);
                     $field_ob->setWhere($this->extendTables[$col][3]);
                     $field_ob->WithLabel(false);
                     if (!$this->extendTables[$col][4]) {
                         $this->extendTables[$col][4] = true;
                     }
                     if (in_array($col, $this->parentAttr)) {
                         $field_ob->SetValueField($_REQUEST[$col]);
                     }
                     $field_ob->setWithAdd($this->extendTables[$col][4]);
                     $field_ob->SetExtra($this->extra[$col]);
                     $field_ob->SetInputLength($this->legths[$col]);
                     $result .= "<td>" . $field_ob->getField() . "</td>";
                 }
                 foreach ($this->extraLinks as $exlink) {
                     $result .= "<td></td>\n";
                 }
                 if ($this->active == true) {
                     $result .= "<td></td>\n";
                 }
                 $i_page = 0;
                 foreach ($query as $row_seo) {
                     if ($i_page < 1) {
                         if ($row_seo[$this->page_id] > 0) {
                             $result .= "<td></td>\n";
                             $i_page++;
                         }
                     }
                 }
                 $i_dublicate = 0;
                 foreach ($query as $row_dublicate) {
                     if ($i_dublicate < 1) {
                         if ($this->display == true) {
                             $result .= "<td></td>\n";
                             $i_dublicate++;
開發者ID:VoilaVoila,項目名稱:voilacms,代碼行數:67,代碼來源:ListTable.php


注:本文中的field::WithLabel方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。