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


PHP cmsCore::city_input方法代码示例

本文整理汇总了PHP中cmsCore::city_input方法的典型用法代码示例。如果您正苦于以下问题:PHP cmsCore::city_input方法的具体用法?PHP cmsCore::city_input怎么用?PHP cmsCore::city_input使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cmsCore的用法示例。


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

示例1: if

         </select>
         <input name="title" type="text" id="title" class="text-input" style="width:240px" maxlength="250"  value="<?php echo $this->escape($item['title']); ?>"/>
     </td>
 </tr>
 <tr id="from_search">
     <td></td>
     <td height="35">
         <input name="title_fake" type="text" id="title_fake" maxlength="250"  value=""/>
     </td>
 </tr>
 <tr class="proptable">
     <td>
         <span><?php echo $_LANG['CITY']; ?>:</span>
     </td>
     <td height="35" valign="top">
         <?php echo cmsCore::city_input(array('value' => $item['city'], 'name' => 'city', 'width' => '403px')); ?>
     </td>
 </tr>
 <tr id="before_form">
     <td valign="top">
         <span><?php echo $_LANG['TEXT_ADV']; ?>:</span>
     </td>
     <td height="100" valign="top">
         <textarea name="content" class="text-input" style="width:403px" rows="5" id="content"><?php echo $this->escape($item['content']); ?></textarea>
     </td>
 </tr>
 <?php if ($formsdata) { ?>
     <?php foreach($formsdata as $form) { ?>
     <tr class="cat_form">
         <td valign="top">
             <span><?php echo $form['title']; ?>:</span>
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:31,代码来源:com_board_edit.php

示例2: if

     <td valign="top"><strong><?php echo $_LANG['SEX']; ?>:</strong></td>
     <td valign="top">
         <select name="gender" id="gender" style="width:307px">
             <option value="0" <?php if ($usr['gender'] == 0) { ?> selected <?php } ?>><?php echo $_LANG['NOT_SPECIFIED']; ?></option>
             <option value="m" <?php if ($usr['gender'] == 'm') { ?> selected <?php } ?>><?php echo $_LANG['MALES']; ?></option>
             <option value="f" <?php if ($usr['gender'] == 'f') { ?> selected <?php } ?>><?php echo $_LANG['FEMALES']; ?></option>
         </select>
     </td>
 </tr>
 <tr>
     <td valign="top">
         <strong><?php echo $_LANG['CITY']; ?>:</strong><br />
         <span class="usr_edithint"><?php echo $_LANG['CITY_TEXT']; ?></span>
     </td>
     <td valign="top">
         <?php echo cmsCore::city_input(array('value' => $usr['city'], 'name' => 'city', 'width' => '300px')); ?>
     </td>
 </tr>
 <tr>
     <td valign="top">
         <strong><?php echo $_LANG['TIMEZONE']; ?>:</strong><br />
     </td>
     <td valign="top">
         <select name="timezone" style="width:307px">
             <?php echo $timezones_opt; ?>
         </select>
     </td>
 </tr>
 <tr>
     <td valign="top"><strong><?php echo $_LANG['BIRTH']; ?>:</strong> </td>
     <td valign="top">
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:31,代码来源:com_users_edit_profile.php

示例3:

                </select>
            </td>
        </tr>
        <tr>
            <td>
                <input style="width:120px" name="agefrom" type="text" id="agefrom" value="" placeholder="<?php echo $_LANG['AGE_FROM']; ?>" class="text-input" />
                <input style="width:125px" name="ageto" type="text" id="ageto" value="" placeholder="<?php echo $_LANG['TO']; ?>" class="text-input" />
            </td>
        </tr>
        <tr>
            <td>
                <input style="width:255px" id="name" name="name" type="text" value="" placeholder="<?php echo $_LANG['NAME']; ?>" class="text-input" />
            </td>
        </tr>
        <tr>
            <td>
                <?php echo cmsCore::city_input(array('name' => 'city', 'width' => '255px', 'input_width' => '120px', 'placeholder' => $_LANG['CITY'])) ?>
            </td>
        </tr>
        <tr>
            <td>
                <input style="width:255px" id="hobby" name="hobby" type="text" value="" placeholder="<?php echo $_LANG['HOBBY']; ?>" class="text-input" />
            </td>
        </tr>
        <tr>
            <td align="center">
                <input name="gosearch" type="submit" id="gosearch" value="<?php echo $_LANG['SEARCH']; ?>" />
            </td>
        </tr>
    </table>
</form>
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:31,代码来源:mod_usersearch.php

示例4: smarty_function_city_input

/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

function smarty_function_city_input($params, $template){
    return cmsCore::city_input($params);
}
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:9,代码来源:function.city_input.php

示例5: if

            <option value="m" <?php if ($gender == 'm') { ?>selected="selected"<?php } ?>><?php echo $_LANG['FIND_MALE']; ?></option>
            <option value="all" <?php if (!$gender) { ?>selected="selected"<?php } ?>><?php echo $_LANG['FIND_ALL']; ?></option>
          </select></td>
        <td width="80"><?php echo $_LANG['AGE_FROM']; ?></td>
        <td><input style="width:60px" name="agefrom" type="text" id="agefrom" value="<?php if ($age_fr) { ?><?php echo $age_fr; ?><?php } ?>"/>
          <?php echo $_LANG['TO']; ?>
          <input style="width:60px" name="ageto" type="text" id="ageto" value="<?php if ($age_to) { ?><?php echo $age_to; ?><?php } ?>"/></td>
      </tr>
      <tr>
        <td> <?php echo $_LANG['NAME']; ?> </td>
        <td colspan="3"><input id="name" name="name" class="longfield" type="text" value="<?php echo $this->escape($name); ?>"/></td>
      </tr>
      <tr>
        <td><?php echo $_LANG['CITY']; ?></td>
        <td colspan="3">
            <?php echo cmsCore::city_input(array('value' => $city, 'name' => 'city', 'width' => '408px')); ?>
        </td>
      </tr>
      <tr>
        <td><?php echo $_LANG['HOBBY']; ?></td>
        <td colspan="3"><input style="" id="hobby" class="longfield" name="hobby" type="text" value="<?php echo $this->escape($hobby); ?>"/></td>
      </tr>
    </table>
	<p><label for="online" style="display:inherit;"><input id="online" name="online" type="checkbox" value="1" <?php if ($only_online) { ?> checked="checked"<?php } ?>> <?php echo $_LANG['SHOW_ONLY_ONLINE']; ?></label></p>
    <p>
      <input name="gosearch" type="submit" id="gosearch" value="<?php if ($stext) { ?><?php echo $_LANG['SEARCH_IN_RESULTS']; ?><?php } else { ?><?php echo $_LANG['SEARCH']; ?><?php } ?>" />
      <?php if ($stext) { ?>
      	<input type="button" value="<?php echo $_LANG['CANCEL_SEARCH_SHOWALL']; ?>" onclick="centerLink('/users/all.html')" />
      <?php } ?>
      <input name="hide" type="button" id="hide" value="<?php echo $_LANG['HIDE']; ?>" onclick="$('#users_sbar').slideToggle();"/>
    </p>
开发者ID:Acsac,项目名称:CMS-RuDi,代码行数:31,代码来源:com_users_view.php


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