Ejemplo n.º 1
0
?>
">

<div id="hd">
    <div class="container_12 top">
    	<div class="grid_12">
    		<div class="usr">
    			<div class="wrapper">
        		<?php 
if (user_is_auth()) {
    ?>
        			Logged in as <strong><a href="/user/view/<?php 
    echo user_get_id();
    ?>
"><?php 
    echo escape(user_get_username());
    ?>
</a></strong> | 
        			<a href="/user/main">Account</a> | 
        			<a href="/user/logout">Logout</a>
        		<?php 
} else {
    ?>
        			<a href="/user/login">Login</a> or <a href="/user/register">Register</a>
        		<?php 
}
?>
    			</div>
    			<div class="clear"></div>
    		</div>
    	</div>
Ejemplo n.º 2
0
    <?php 
    echo form_hidden('edit_comment');
    ?>
    <label for="comment">Comment
        <span id="comment_as_user" <?php 
    if (!$auth) {
        ?>
style="display: none;"<?php 
    }
    ?>
> as <a href="/user/view/<?php 
    echo user_get_id();
    ?>
"><?php 
    echo user_get_username();
    ?>
</a></span>
        <span id="comment_anonymously" <?php 
    if ($auth) {
        ?>
style="display: none;"<?php 
    }
    ?>
> anonymously</span>
    </label>
    <?php 
    echo form_textarea(array('name' => 'comment', 'id' => 'comment', 'value' => $this->validation->comment, 'cols' => 40, 'rows' => 10));
    if (!$speaker) {
        ?>
    <label class="checkbox">
Ejemplo n.º 3
0
	<table cellpadding="0" cellspacing="0" border="0" id="layout">
	<tr>
		<td id="hdr_graphic"><a href="/"><img src="/inc/img/logo3-sm.jpg" border="0"></a></td>
		<td id="hdr_search" align="right">
			<form action="/search">
				<input type="text" size="10" name="search_term">
				<input type="submit" name="search_sub" value="search" />
			</form>
		</td>
	</tr>
	<tr class="nav_links">
		<td colspan="2">
			<a href="/">home</a>
			<a href="/tutorials">tutorials</a>
			<?php 
$uname = user_get_username();
echo empty($uname) ? '<a href="/user/login">login</a>' : '<a href="/user/logout">logout ' . $uname . '</a>';
?>
		</td>
	</tr>
	<tr>
		<td colspan="2">
			<table cellpadding="0" cellspacing="0" border="0">
			<tr>
				<td width="85%" valign="top" id="content">
					<?php 
echo $content;
?>
				</td>
				<td valign="top" class="center_bar">
					<?php 
Ejemplo n.º 4
0
          if ($v['rating']==2) {
            print "Not special";
          }   
          if ($v['rating']==3) {
            print "Good";
          }   
          if ($v['rating']==4) {
            print "Very Good";
          }   
          if ($v['rating']==5) {
            print "Excellent!";
          }      
        ?>
      </div>

      <!-- date and reviewed by-->
      <div>
        Reviewed by <?php print user_get_username($v['user_id']) ?> 
        on <?php print date('M d, Y',$v['created_at']) ?>
      </div>

      <!-- comment -->
      <div>
        <?php print $v['comment'] ?>
      </div>
  
    </li>
              
  <?php } ?>
  </ul>
<?php endif; ?>