当前位置: 首页>>代码示例>>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;未经允许,请勿转载。