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


PHP get_countries_list函数代码示例

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


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

示例1: lang

<?if($success===True){?>
<div class="success">
	<?php 
echo lang('SAVE_SYSTEM_SUCCESS');
?>
</div>
<?}?>

<div class="column span-4">
	<?php 
echo form_label(lang('COUNTRY') . required_field(), '_countries_rid');
?>
</div>
<div class="column span-20 last">
	<?php 
echo form_dropdown('_countries_rid', get_countries_list(), set_value('_countries_rid', $ds->_countries_rid), 'id="_countries_rid" class="text part-5" ');
?>
</div>

<div class="column span-4">
	<?php 
echo form_label(lang('NAME') . required_field(), 'city_name');
?>
</div>
<div class="column span-20 last">
	<?php 
echo form_input('city_name', set_value('city_name', $ds->city_name), 'id="city_name" class="text part-5" ');
?>
</div>
<div class="column span-4">
	<?php 
开发者ID:vsanth,项目名称:travelcrm,代码行数:31,代码来源:vedit.php

示例2: form_input

 <font color="red">*</font>
</div>
<div class="column span-4">
	<?php 
echo form_input('f_name_lat', set_value('f_name_lat', ''), 'id="f_name_lat" class="text" style="width:100px;"');
?>
</div>
<div class="column span-4">
	<?php 
echo form_label(lang('CITIZENSHIP'), '_countries_rid');
?>
 <font color="red">*</font>
</div>
<div class="column span-4 last">
	<?php 
echo form_dropdown('_countries_rid', get_countries_list(), set_value('_countries_rid', ''), 'id="_countries_rid" class="text" style="width: 150px;"');
?>
</div>
<div class="column span-4">
	<?php 
echo form_label(lang('SEX'), 'sex');
?>
 <font color="red">*</font>
</div>
<div class="column span-20 last">
	<?php 
echo form_dropdown('sex', get_sex_list(), set_value('sex', ''), 'id="sex" class="text"');
?>
</div>
<div class="column span-4">
	<?php 
开发者ID:vsanth,项目名称:travelcrm,代码行数:31,代码来源:vcreate.php

示例3: form_open

<div class="container findform">
<?php 
echo form_open(get_currcontroller() . "/find/go", array('id' => 'find_' . $orid, 'autocomplete' => 'off'));
echo form_hidden('obj_rid', $orid);
?>
<div class="column span-3">
	<h6><?php 
echo lang('SEARCH_TITLE');
?>
</h6>
</div>
<div class="column span-6">
	<?php 
echo form_label(lang('COUNTRY'), '_countries_rid');
?>
	<br>
	<?php 
echo form_dropdown('_countries_rid', get_countries_list(), element('_cities._countries_rid', $search, ''), 'id="_countries_rid" class="text"');
?>
</div>
<div class="column span-5">
	<?php 
echo form_label(lang('NAME'), 'city_name');
?>
	<br>
	<?php 
echo form_input('city_name', element('_cities.city_name', $search, ''), 'id="city_name" class="text part-3"');
?>
</div>
<div class="column span-5">
	<?php 
开发者ID:vsanth,项目名称:travelcrm,代码行数:31,代码来源:find.php

示例4: form_label

echo form_label(lang('F_NAME_LAT'), 'f_name_lat');
?>
</div>
<div class="column span-4">
	<?php 
echo form_input('f_name_lat', set_value('f_name_lat', $ds->f_name_lat), 'id="f_name_lat" class="text" readonly="readonly" style="width:100px;"');
?>
</div>
<div class="column span-4">
	<?php 
echo form_label(lang('CITIZENSHIP'), '_countries_rid');
?>
</div>
<div class="column span-4 last">
	<?php 
echo form_dropdown('_countries_rid', get_countries_list(), set_value('_countries_rid', $ds->_countries_rid), 'id="_countries_rid" class="text" readonly="readonly"  style="width: 150px;"');
?>
</div>
<div class="column span-4">
	<?php 
echo form_label(lang('SEX'), 'sex');
?>
</div>
<div class="column span-20 last">
	<?php 
echo form_dropdown('sex', get_sex_list(), set_value('sex', $ds->sex), 'id="sex" readonly="readonly" class="text"');
?>
</div>
<div class="column span-4">
	<?php 
echo form_label(lang('BIRTHDAY'), 'birthday');
开发者ID:vsanth,项目名称:travelcrm,代码行数:31,代码来源:details.php

示例5: base64_decode

<?php

global $wpdb;
$sql = 'select * from wp_application_form where id=' . base64_decode($_GET['id']);
$result = $wpdb->get_results($sql);
$user_sql = 'select * from  ' . $wpdb->prefix . 'application_form_user where created_user_id=' . get_current_user_id();
$user_result = $wpdb->get_results($user_sql);
$country_result = get_countries_list();
add_thickbox();
?>

<style>label{margin: 10px}</style>
<h1>Application Form <span style="float: right;font-size: 20px;margin:20px 20px 0px 20px;"><a href="<?php 
echo get_admin_url();
?>
admin-post.php?action=user-add-form&KeepThis=true&TB_iframe=true&height=400&width=1200&modal=true" class="thickbox">Add User</a></span></h1>
<script>
<?php 
if (isset($_GET['id'])) {
    ?>
    alert_close();
<?php 
}
?>
function alert_close()
{
    jQuery.post( ajaxurl ,{'action':'user_ajax','id':<?php 
if (isset($result[0]->applicanttechname) && $result[0]->applicanttechname != "") {
    echo $result[0]->applicanttechname;
} else {
    echo 0;
开发者ID:anand-infobeans,项目名称:application-form,代码行数:31,代码来源:header.php

示例6: application_add_custom_user_profile_fields

function application_add_custom_user_profile_fields($user)
{
    //$all = array_map( function( $a ){ return $a[0]; }, get_user_meta( $user->ID ) );
    global $wpdb;
    $user_result = $wpdb->get_results("select * from " . $wpdb->prefix . "users where ID =" . $user->ID);
    $all = json_decode(json_encode($user_result), true);
    $all = $all[0];
    $country_result = get_countries_list();
    $state_sql = 'select * from ' . $wpdb->prefix . 'state';
    $state_result = $wpdb->get_results($state_sql);
    global $current_user;
    get_currentuserinfo();
    if (!user_can($current_user, "administrator")) {
        ?>
<table class="form-table">
        <tbody>
        <tr class="user-country-wrap">
        <th><label for="country">Country</label></th>
        <td>
          <select class="select-box width-100 select-box-selected" name="country" id="country">
                    <option value="">Select</option>
                    <?php 
        foreach ($country_result as $val) {
            ?>
                        <option value="<?php 
            echo $val->id;
            ?>
" <?php 
            if (isset($all['country']) && $val->id == $all['country']) {
                echo "selected";
            }
            ?>
><?php 
            echo $val->country;
            ?>
</option>
                            <?php 
        }
        ?>
        </select>
        </td>
        </tr>
          <tr class="user-state-wrap">
        <th><label for="state">State</label></th>
        <td>
         <select class="select-box width-100 select-box-selected"  name="state" id="state">
                    <option value="">Select</option>
                    <?php 
        foreach ($state_result as $val) {
            ?>
                        <option value="<?php 
            echo $val->id;
            ?>
" <?php 
            if (isset($all['state']) && $val->id == $all['state']) {
                echo "selected";
            }
            ?>
><?php 
            echo $val->state;
            ?>
</option>
                            <?php 
        }
        ?>
                </select>
        </td>
        </tr>
 
        <tr class="user-zipcode-wrap">
            <th><label for="zipcode">Zipcode</label></th>
            <td><input placeholder="Zipcode" type="text" name="zipcode" id="zipcode" value="<?php 
        echo $all['zipcode'];
        ?>
" class="pop-up-innput" /></td>
        </tr>


        <tr class="user-company-name-wrap">
            <th><label for="company_name">Company Name</label></th>
            <td><input placeholder="Company Name" type="text" name="company_name" id="company_name" value="<?php 
        echo $all['company_name'];
        ?>
" class="pop-up-innput" /></td>
        </tr>

        <tr class="user-phone-wrap">
            <th><label for="phone">Phone</label></th>
            <td><input placeholder="Phone" type="text" name="phone" id="phone" value="<?php 
        echo $all['phone'];
        ?>
" class="pop-up-innput" /></td>
        </tr>

        <tr class="user-mailing-address-wrap">
            <th><label for="mailing_address">Mailing Address</label></th>
            <td>    <input placeholder="Mailing Address" type="text" name="mailing_address" id="mailing_address" value="<?php 
        echo $all['address'];
        ?>
" class="pop-up-innput" /></td>
//.........这里部分代码省略.........
开发者ID:anand-infobeans,项目名称:application-form,代码行数:101,代码来源:application_form.php

示例7: form_dropdown

</div>
<div class="column span-20 last">
	<?php 
echo form_dropdown('_hotelscats_rid', get_hotelscats_list(), set_value('_hotelscats_rid', $ds->_hotelscats_rid), 'class="text part-5" readonly="readonly" id="_hotelscats_rid"');
?>
</div>


<div class="column span-4">
	<?php 
echo form_label(lang('COUNTRY'), '_countries_rid');
?>
</div>
<div class="column span-20 last">
	<?php 
echo form_dropdown('_countries_rid', get_countries_list(), set_value('_countries_rid', $ds->_countries_rid), 'id="_countries_rid" readonly="readonly" class="text" ');
?>
</div>

<div class="column span-4">
	<?php 
echo form_label(lang('CUROURT'), '_curourts_rid');
?>
</div>
<div class="column span-20 last">
	<?php 
echo form_input('curourt_name', get_curourtname_byrid(set_value('_curourts_rid', $ds->_curourts_rid)), 'id="curourt_name" class="text part-5" readonly="readonly"');
?>
</div>

<fieldset>
开发者ID:vsanth,项目名称:travelcrm,代码行数:31,代码来源:details.php

示例8: form_label

</fieldset>
<div class="column span-4">
	<?php 
echo form_label(lang('ADVERTISE_SHORT') . required_field(), 'source_name');
?>
 
</div>
<div class="column span-20 last">
	<?php 
echo get_advertisessources_vp(set_value('_advertisessources_rid', ''));
?>
</div>
<div class="column span-4">
	<?php 
echo form_label(lang('L_NAME'), 'l_name');
?>
</div>
<div class="column span-20 last">
	<?php 
echo form_input('l_name', set_value('l_name', ''), 'id="l_name" class="text part-5"');
?>
</div>
<div class="column span-4">
	<?php 
echo form_label(lang('F_NAME') . get_field_help('aircalls', 'CLIENT'), 'f_name');
?>
 
</div>
<div class="column span-20 last">
	<?php 
echo form_input('f_name', set_value('f_name', ''), 'id="f_name" class="text part-5"');
开发者ID:vsanth,项目名称:travelcrm,代码行数:31,代码来源:create.php

示例9: form_input

?>
	<br>
	<?php 
echo form_input('doc_to', date_conv(element('_emp_to_positions_headers.date_doc <=', $search, null)), 'id="doc_to" class="text date-entry"');
?>
		<script type="text/javascript">
			$('#doc_to').dateEntry({dateFormat: '<?php 
echo $this->config->item('crm_date_entry_format');
?>
', spinnerImage:''});
		</script>
</div>
<div class="column span-6 last">
	<?php 
echo form_label(lang('CLIENT'), '_clients_rid');
?>
	<br>
	<?php 
echo get_clients_vp(element('_aircalls_rows._clients_rid', $search, null), '_clients_rid', 'client_name', False);
?>
</div>

<div class="column span-3">
	&nbsp;
</div>
<div class="column span-5">
	<?php 
echo form_label(lang('FILIAL'), 'filial_name');
?>
	<br>
	<?php 
开发者ID:vsanth,项目名称:travelcrm,代码行数:31,代码来源:vfind.php

示例10: get_advertisessources_vp

</div>
<div class="column span-20 last">
	<?php 
echo get_advertisessources_vp(set_value('_advertisessources_rid', ''));
?>
</div>
<div class="column span-4">
	<?php 
echo form_label(lang('L_NAME'), 'l_name');
?>
</div>
<div class="column span-20 last">
	<?php 
echo form_input('l_name', set_value('l_name', ''), 'id="l_name" class="text part-5"');
?>
</div>
<div class="column span-4">
	<?php 
echo form_label(lang('F_NAME') . get_field_help('calls', 'F_NAME'), 'f_name');
?>
 
</div>
<div class="column span-20 last">
	<?php 
echo form_input('f_name', set_value('f_name', ''), 'id="f_name" class="text part-5"');
?>
</div>
<div class="column span-4">
	<?php 
echo form_label(lang('S_NAME'), 's_name');
?>
开发者ID:vsanth,项目名称:travelcrm,代码行数:31,代码来源:vcreate.php


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