function get_short_description($desription, $no_of_word) { $ret_val = ''; $str = generate_pure_text($desription, '<p>', '</p>'); $str_array = array(); $str_array = explode(' ', $str); if ($no_of_word > count($str_array)) { return $str; } for ($i = 0; $i < $no_of_word; $i++) { $ret_val .= $str_array[$i] . ' '; } return $ret_val; }
?> </div> <?php } ?> <textarea cols="60" class="form_input" rows="2" name="title"> <?php echo set_value('title', $query['title']); ?> </textarea></td> </tr> <tr> <td>Description<span style="color:red">*</span></td><td> <?php if (form_error('description') != "") { ?> <div class="form_error"> <?php echo generate_pure_text(form_error('description'), '<p>', '</p>'); ?> </div> <?php } ?> <?php $data = array('name' => 'description', 'id' => 'description', 'height' => 300, 'width' => 440, 'value' => html_entity_decode(set_value('description', strip_tags($query['description']))), 'type' => 'text'); echo form_fckeditor($data); ?> </td> </tr> <tr> <td>Image</td><td> <img src="<?php
<input type="text" class="form_input" name="mobile" size="35" maxlength="40" value="<?php echo set_value('mobile', $data->mobile); ?> " /></td> </tr> <tr> <td><?php echo lang('address'); ?> </td> <td> <?php if (form_error('address') != "") { ?> <div class="form_error"><?php echo generate_pure_text(form_error('address'), '<p>', '</p>'); ?> </div> <?php } ?> <input type="text" class="form_input" name="address" size="35" maxlength="40" value="<?php echo set_value('address', $data->address); ?> " /></td> </tr> <?php if ($data->user_id != $this->session->userdata('user_id')) { ?> <tr> <td></td> <td>
<input type="password" class="form_input" name="password" size="35" maxlength="40" value="<?php echo set_value('password'); ?> " /></td> </tr> <tr> <td><?php echo lang('confirm_pass'); ?> </td> <td> <?php if (form_error('confirm_password') != "") { ?> <div class="form_error"><?php echo generate_pure_text(form_error('confirm_password'), '<p>', '</p>'); ?> </div> <?php } ?> <input type="password" class="form_input" name="confirm_password" size="35" maxlength="40" value="<?php echo set_value('confirm_password'); ?> " /></td> </tr> <tr> <td colspan="2"><input type="submit" name="register" value="<?php echo lang('register'); ?>
</div> <?php } ?> <form method="POST" action="<?php echo site_url('admin_contact/analitics'); ?> "> <table class="form_content" width="100%"> <tr> <td>Code <span style="color:red">*</span></td><td> <?php if (form_error('code') != "") { ?> <div class="form_error"><?php echo generate_pure_text(form_error('code'), '<p>', '</p>'); ?> </div> <?php } ?> <textarea cols="51" rows="10" name="code"><?php echo $query['destination']; ?> </textarea> </td> </tr> <tr> <td></td><td> <input type="submit" name="submit" class="submit" value="Enregistrer"/> </td>
} ?> <?php $data = array('name' => 'description', 'id' => 'description', 'height' => 300, 'width' => 440, 'value' => html_entity_decode(set_value('description')), 'type' => 'text'); echo form_fckeditor($data); ?> </td> </tr> <tr> <td>Video Link</td> <td> <?php if (form_error('title') != "") { ?> <div class="form_error"><?php echo generate_pure_text(form_error('video_link'), '<p>', '</p>'); ?> </div> <?php } ?> <input type="text" class="form_input" name="video_link" size="35" value="<?php echo set_value('video_link'); ?> " /></td> </tr> <tr> <td>Album</td> <td> <?php echo form_dropdown('album_id', dropdown_data($album_setting));
</p> <p> <label><?php echo lang('captcha'); ?> </label> <?php echo $captcha_img; ?> </p> <p> <?php if (form_error('captcha') != "") { ?> <div class="form_error"><?php echo generate_pure_text(form_error('captcha'), '<p>', '</p>'); ?> </div> <?php } ?> <label>Captcha</label> <input name="captcha" class="input_text" style="width: 140px;" size="35" value="<?php echo set_value('captcha'); ?> " /> <span>*</span> </p> <p class="required"> <label> </label> <span>*</span>Required field </p>