</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>
<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">
</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>
/** * Smarty plugin * @package Smarty * @subpackage plugins */ function smarty_function_city_input($params, $template){ return cmsCore::city_input($params); }
<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>