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


PHP Operator::build_country_list方法代碼示例

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


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

示例1: DbFunctions

 function build_edit_emergency_popup($id)
 {
     $db_functions_obj = new DbFunctions();
     $helper_obj = new Helper();
     $emergency_info = $db_functions_obj->get_emergency_by_id($id);
     global $base_path;
     $operator = new Operator();
     $output = "<div class='popup-header'>" . $helper_obj->t("Edit Emergency Call") . "</div>";
     $output .= "<form class='form-horizontal form-validate form-vertical form-bordered' name='edit_emergency' id='edit_emergency' method='post' action='{$base_path}" . "edit_emergency'>";
     $output .= "<div class='control-group'>\n                        <label class='control-label' for='textarea'>name</label>\n                        <div class='controls'>\n                            <input id='textfield' class='input-xlarge' type='text' data-rule-required='true' value='{$emergency_info->name}' placeholder='{$emergency_info->name}' name='name'>\n                        </div>\n                    </div>";
     $output .= "<div class='control-group'>\n                        <label class='control-label' for='numberfield'>phone</label>\n                        <div class='controls'>\n                            <input id='numberfield' class='input-xlarge' type='text' data-rule-number='true' data-rule-required='true' value='{$emergency_info->phone}' placeholder='{$emergency_info->phone}' name='phone'>\n                        </div>\n                    </div>";
     $output .= $operator->build_country_list('emergency', $emergency_info->country_id);
     $output .= "<input type='hidden' name='emergency_id' value='" . $emergency_info->id . "'>";
     $output .= "<input class='btn btn-primary' type='submit' value='" . $helper_obj->t("Save") . "'>";
     $output .= "</form>";
     $output .= "<script>\n                    \$(document).ready(function() {        \n                       \$(\"#emergency_textfield\").datepicker();   \n                     \n                       \$('#edit_emergency').ajaxForm(function(res) { \n                           var isvalid = \$(\"#edit_emergency\").valid();\n                           if (isvalid) { \n                               var data = res.split(\"***#***\");   \n                               \$('#emergency_' + data[1]).after(data[0]);\n                               \$('#emergency_' + data[1]).remove(); \n                               closePopup();\n                           }  \n                       }); \n                    });\n                    </script>";
     return $output;
 }
開發者ID:arh922,項目名稱:ain,代碼行數:18,代碼來源:emergency_calls.php

示例2: Operator

 function build_country_category_rss_form()
 {
     $op_obj = new Operator();
     $cat_obj = new Category();
     global $user;
     global $base_path;
     $cid = $user->cid;
     $helper_obj = new Helper();
     $output = "";
     $output = '<div class="box box-bordered">';
     $output .= '<div class="box-title">
                    <h3><i class="icon-th-list"></i> Add RSS Source To Category And Country</h3>
                 </div>';
     $output .= "<form class='form-horizontal form-validate form-vertical form-bordered' method='post' id='add_country_category_rss' name='add_country_category_rss' action='" . $base_path . "add_country_category_rss'>";
     $output .= $op_obj->build_country_list("add");
     $output .= $cat_obj->build_categories_list("add");
     $output .= $this->build_rss_source_list("add");
     $output .= "<input class='btn btn-primary' type='submit' value='" . $helper_obj->t('Save') . "'>";
     $output .= "<input type='reset' style='display: none' id='add_rss_source_reset'></div>";
     $output .= "</form><br /><br />";
     return $output;
 }
開發者ID:arh922,項目名稱:ain,代碼行數:22,代碼來源:rss_source.php


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