Example #1
0
                <?php 
ckeditor($action == "add" ? set_value('post_content') : $contest_info->content, 'post_content');
?>
                <!--<textarea id="content" name="content"><?php 
echo $action == "add" ? set_value('post_content') : $contest_info->content;
?>
</textarea>-->
        
                
                <label for="photo">Image</label>
                
                <?php 
if (!empty($contest_info->image)) {
    ?>
                <p><img height="150" src="<?php 
    echo contest_image($contest_info->image);
    ?>
" alt="<?php 
    echo $contest_info->title;
    ?>
" title="<?php 
    echo $contest_info->title;
    ?>
" /></p>
                <?php 
}
?>
                <p><input type="file" id="photo" name="photo" /></p>

				<?php 
if ($action == "edit") {
Example #2
0
foreach ($contests as $i => $r) {
    ?>
                    	<tr>
                        	<td><?php 
    echo $i + 1;
    ?>
</td>
                        	<td><a href="<?php 
    echo base_url() . 'contest/' . $r->contest_id . '/' . pretty_url($r->title);
    ?>
" target="_blank"><?php 
    echo $r->title;
    ?>
</a></td>
                            <td><img width="150" src="<?php 
    echo contest_image($r->image);
    ?>
" alt="<?php 
    echo $r->title;
    ?>
" title="<?php 
    echo $r->title;
    ?>
" /></td>
                        	<td><p><?php 
    echo substr(strip_tags($r->content), 0, 150);
    ?>
...</p></td>
                            <td><a href="<?php 
    echo base_url() . 'backadmin/contest/entries/' . $r->contest_id;
    ?>