function content_56789a6a17e782_53410507($_smarty_tpl) { if (!is_callable('smarty_modifier_capitalize')) { require_once '/home/hammad/Desktop/Sportoya/application/libraries/smarty/plugins/modifier.capitalize.php'; } if (!is_callable('smarty_function_ci_config')) { require_once '/home/hammad/Desktop/Sportoya/application/libraries/smarty/plugins/function.ci_config.php'; } if (!is_callable('smarty_modifier_date_format')) { require_once '/home/hammad/Desktop/Sportoya/application/libraries/smarty/plugins/modifier.date_format.php'; } if (!is_callable('smarty_function_html_select_date')) { require_once '/home/hammad/Desktop/Sportoya/application/libraries/smarty/plugins/function.html_select_date.php'; } if (!is_callable('smarty_function_html_select_time')) { require_once '/home/hammad/Desktop/Sportoya/application/libraries/smarty/plugins/function.html_select_time.php'; } if (!is_callable('smarty_function_ci_language')) { require_once '/home/hammad/Desktop/Sportoya/application/libraries/smarty/plugins/function.ci_language.php'; } if (!is_callable('smarty_function_ci_form_validation')) { require_once '/home/hammad/Desktop/Sportoya/application/libraries/smarty/plugins/function.ci_form_validation.php'; } if (!is_callable('smarty_function_html_options')) { require_once '/home/hammad/Desktop/Sportoya/application/libraries/smarty/plugins/function.html_options.php'; } $_smarty_tpl->properties['nocache_hash'] = '23305161056789a69797566_98732353'; echo $_smarty_tpl->getSubTemplate("header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array('title' => "Example Smarty Page", 'name' => (string) $_smarty_tpl->tpl_vars['Name']->value), 0); ?> <h1> <?php if ($_smarty_tpl->tpl_vars['bold']->value) { ?> <b><?php } ?> Title: <?php echo smarty_modifier_capitalize($_smarty_tpl->tpl_vars['title']->value); ?> <?php if ($_smarty_tpl->tpl_vars['bold']->value) { ?> </b><?php } ?> </h1> <?php if ($_smarty_tpl->tpl_vars['error']->value != '') { ?> <p class="error"><?php echo $_smarty_tpl->tpl_vars['error']->value; ?> </p><?php } if ($_smarty_tpl->tpl_vars['message']->value != '') { ?> <p class="message"><?php echo $_smarty_tpl->tpl_vars['message']->value; ?> </p><?php } ?> <?php echo smarty_function_ci_config(array('name' => "base_url"), $_smarty_tpl); ?> <p>The configuration value of base_url is <em><?php echo $_smarty_tpl->tpl_vars['base_url']->value; ?> </em></p> <p>The current date and time is <em><?php echo smarty_modifier_date_format(time(), "%Y-%m-%d %H:%M:%S"); ?> </em></p> <p>The value of global assigned variable $SCRIPT_NAME is <em><?php echo $_smarty_tpl->tpl_vars['SCRIPT_NAME']->value; ?> </em></p> <p>The value of server environment variable SERVER_NAME is <em><?php echo $_SERVER['SERVER_NAME']; ?> </em></p> <p>The value of your IP address is: <em><?php echo $_smarty_tpl->tpl_vars['ip_address']->value; ?> </em></p> <p>The value of {$Name} is <em><?php echo $_smarty_tpl->tpl_vars['Name']->value; ?> </em></p> <p>The value of {$Name|upper} is <em><?php echo mb_strtoupper($_smarty_tpl->tpl_vars['Name']->value, 'UTF-8'); ?> </em></p> <h2>An example of a section loop:</h2> <ul> <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['outer'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['outer']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['name'] = 'outer'; $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['FirstName']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['outer']['total']; if (1 & $_smarty_tpl->getVariable('smarty')->value['section']['outer']['index'] / 2) { ?> <li><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['outer']['rownum']; ?> . <?php echo $_smarty_tpl->tpl_vars['FirstName']->value[$_smarty_tpl->getVariable('smarty')->value['section']['outer']['index']]; ?> <?php echo $_smarty_tpl->tpl_vars['LastName']->value[$_smarty_tpl->getVariable('smarty')->value['section']['outer']['index']]; ?> </li> <?php } else { ?> <li><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['outer']['rownum']; ?> * <?php echo $_smarty_tpl->tpl_vars['FirstName']->value[$_smarty_tpl->getVariable('smarty')->value['section']['outer']['index']]; ?> <?php echo $_smarty_tpl->tpl_vars['LastName']->value[$_smarty_tpl->getVariable('smarty')->value['section']['outer']['index']]; ?> </li> <?php } } } else { ?> <li>none</li> <?php } ?> </ul> <h2>An example of section looped key values:</h2> <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1'])) { unset($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']); } $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['name'] = 'sec1'; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'] = is_array($_loop = $_smarty_tpl->tpl_vars['contacts']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop); $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = true; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop']; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop'] - 1; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']) { $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['loop']; if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] == 0) { $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show'] = false; } } else { $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total'] = 0; } if ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['show']) { for ($_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] = 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total']; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration']++) { $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration']; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['step']; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['first'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == 1; $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['last'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['sec1']['total']; ?> </li> <ul> <li>phone: <?php echo $_smarty_tpl->tpl_vars['contacts']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['phone']; ?> </li> <li>fax: <?php echo $_smarty_tpl->tpl_vars['contacts']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['fax']; ?> </li> <li>cell: <?php echo $_smarty_tpl->tpl_vars['contacts']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec1']['index']]['cell']; ?> </li> </ul> <?php } } ?> <h2>An example testing strip tags:</h2> <table border=0><tr><td><a HREF="<?php echo $_smarty_tpl->tpl_vars['SCRIPT_NAME']->value; ?> "><font color="red">This is a test </font></a></td></tr></table> <h2>An example of the html_select_date function:</h2> <form> <?php echo smarty_function_html_select_date(array('start_year' => 1998, 'end_year' => 2010), $_smarty_tpl); ?> </form> <h2>An example of the html_select_time function:</h2> <form> <?php echo smarty_function_html_select_time(array('use_24_hours' => false), $_smarty_tpl); ?> </form> <h2>An example using form_validation:</h2> <?php echo smarty_function_ci_language(array('file' => "label", 'lang' => (string) $_smarty_tpl->tpl_vars['lang']->value), $_smarty_tpl); ?> <form action="#" method="post"> <fieldset> <label for="username"><?php echo smarty_function_ci_language(array('line' => "username"), $_smarty_tpl); ?> :</label> <input type="text" name="username" id="username" value="<?php echo smarty_function_ci_form_validation(array('field' => 'username'), $_smarty_tpl); ?> " /><br /> <?php echo smarty_function_ci_form_validation(array('field' => 'username', 'error' => 'true'), $_smarty_tpl); ?> <label for="password"><?php echo smarty_function_ci_language(array('line' => "password"), $_smarty_tpl); ?> :</label> <input type="password" name="password" id="password" value="" /><br /> <?php echo smarty_function_ci_form_validation(array('field' => 'password', 'error' => 'true'), $_smarty_tpl); ?> <label for="passconf"><?php echo smarty_function_ci_language(array('line' => "passconf"), $_smarty_tpl); ?> :</label> <input type="password" name="passconf" id="passconf" value="" /><br /> <?php echo smarty_function_ci_form_validation(array('field' => 'passconf', 'error' => 'true'), $_smarty_tpl); ?> <label for="email"><?php echo smarty_function_ci_language(array('line' => "email"), $_smarty_tpl); ?> :</label> <input type="text" name="email" id="email" value="<?php echo smarty_function_ci_form_validation(array('field' => 'email'), $_smarty_tpl); ?> " /><br /> <?php echo smarty_function_ci_form_validation(array('field' => 'email', 'error' => 'true'), $_smarty_tpl); ?> <?php echo smarty_function_ci_form_validation(array('field' => 'state', 'assign' => 'selected_state'), $_smarty_tpl); ?> <label for="state"><?php echo smarty_function_ci_language(array('line' => "state"), $_smarty_tpl); ?> :</label> <select name='state'> <?php echo smarty_function_html_options(array('values' => (string) $_smarty_tpl->tpl_vars['state_values']->value, 'output' => (string) $_smarty_tpl->tpl_vars['state_output']->value, 'selected' => (string) $_smarty_tpl->tpl_vars['selected_state']->value), $_smarty_tpl); ?> </select><br /> <?php echo smarty_function_ci_form_validation(array('field' => 'states', 'error' => 'true'), $_smarty_tpl); ?> <input type="submit" name="action" value="submit" /> </form> <?php echo $_smarty_tpl->getSubTemplate("footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, $_smarty_tpl->cache_lifetime, array(), 0); ?> <?php }
<label for="passconf"><?php echo smarty_function_ci_language(array('line' => 'passconf'), $this);?> :</label> <input type="password" name="passconf" id="passconf" value="" /><br /> <?php echo smarty_function_ci_form_validation(array('field' => 'passconf','error' => 'true'), $this);?> <label for="email"><?php echo smarty_function_ci_language(array('line' => 'email'), $this);?> :</label> <input type="text" name="email" id="email" value="<?php echo smarty_function_ci_form_validation(array('field' => 'email'), $this);?> " /><br /> <?php echo smarty_function_ci_form_validation(array('field' => 'email','error' => 'true'), $this);?> <?php echo smarty_function_ci_form_validation(array('field' => 'state','assign' => 'selected_state'), $this);?> <label for="state"><?php echo smarty_function_ci_language(array('line' => 'state'), $this);?> :</label> <select name='state'> <?php echo smarty_function_html_options(array('values' => ($this->_tpl_vars['state_values']),'output' => ($this->_tpl_vars['state_output']),'selected' => ($this->_tpl_vars['selected_state'])), $this);?> </select><br /> <?php echo smarty_function_ci_form_validation(array('field' => 'states','error' => 'true'), $this);?> <input type="submit" name="action" value="submit" /> </form> <?php $_smarty_tpl_vars = $this->_tpl_vars; $this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array())); $this->_tpl_vars = $_smarty_tpl_vars; unset($_smarty_tpl_vars);