示例#1
0
 function get_user_messages()
 {
     AZ::model('message');
     AZ::helper('date');
     $CI =& get_instance();
     $rows = $CI->message->getMessages('users.name,messages.*', array('messages.trash' => 0, 'messages.receiver' => user::id()), 0, 10);
     $html = '';
     if (count($rows)) {
         foreach ($rows as $row) {
             $attachment = $row->have_attachment ? '<span class="media-meta glyphicon glyphicon-paperclip"></span>' : '';
             $star = $row->is_star ? '<span class="media-meta glyphicon glyphicon-star"></span>' : '';
             $new = $row->is_read ? ' old ' : ' new ';
             $html .= '<a class="media border-dotted ' . $new . '" href="' . site_url('admin/dashboard/messages/inbox/' . $row->id) . '">
                             <span class="media-body">
                                 <span class="media-heading">' . $row->name . '</span>
                                 <span class="media-text ellipsis nm">
                                     ' . substr($row->body, 0, 50) . '
                                 </span>
                                 ' . $attachment . ' 
                                 ' . $star . ' 
                                 <span class = "media-meta pull-right">' . date_when(human_to_unix($row->created)) . '</span>
                             </span>
                             </a>';
         }
     } else {
         $html .= '<p class="p10">' . lang('User dont have any Message') . '</p>';
     }
     return $html;
 }
示例#2
0
															<label><?php 
echo $page_head;
?>
</label>
													</span>
												</li>
												<li>
													<span>
															<label class="field_width"><span class="required">&nbsp;</span>Page Content</label>
													</span>
													<span>
															<label><?php 
echo html_entity_decode($page_html_data, ENT_NOQUOTES, 'UTF-8');
?>
</label>
													</span>
												</li>
												<li>
													<span>
															<label class="field_width"><span class="required">&nbsp;</span><strong>Created Date</strong></label>
													</span>
													<span>
															<label><?php 
echo date_when(strtotime($created));
?>
</label>
													</span>
												</li>
											</ul>	
										</fieldset>	
									</form>	
示例#3
0
 /**
  * Load Activities for Dashboard
  *
  * @return	Object (JSON )
  */
 public function load_activity_json()
 {
     AZ::helper('date');
     $offset = $this->input->post('offset');
     $activities = $this->message->getActivities('*', array(), $offset, 5);
     $posts = array();
     if (count($activities)) {
         $i = 0;
         foreach ($activities as $activity) {
             $posts[$i] = new stdClass();
             $posts[$i]->subject = $activity->subject;
             $posts[$i]->body = $activity->body;
             $posts[$i]->created = date_when(human_to_unix($activity->created));
             $i++;
         }
     }
     echo json_encode($posts);
 }
示例#4
0
                                        <li class="text-right">
                                            <?php 
    if (!empty($selected_message->label_name)) {
        ?>
                                                <span class="glyphicon glyphicon-tag" style="color: <?php 
        echo $selected_message->color;
        ?>
"></span>
                                                <?php 
        echo $selected_message->label_name;
        ?>
                                            <?php 
    }
    ?>
                                            <h5 class="semibold text-muted"><?php 
    echo date_when(human_to_unix($selected_message->created));
    ?>
</h5>
                                        </li>
                                    </ul>
                                    <br />
                                    
                                        <h4 class="text-left">
                                            <?php 
    echo $selected_message->subject;
    ?>
                                        </h4>
                                    
                                    <br />
                                    <div class="panel-body text-left">
                                        <?php 
示例#5
0
								<td class="nt">
						    		<label><?php 
        echo $log['email'];
        ?>
</label>
								</td>
								
								<td class="nt">
									<label><?php 
        echo $log['no_of_subpages'];
        ?>
</label>
								</td>
									<td class="nt">
									<label><?php 
        echo date_when(strtotime($log['created']));
        ?>
</label>
								</td>
								<td class="nt">
									<label><?php 
        echo $log['created_by'];
        ?>
</label>
								</td>
								<td class="nt">
									<label><?php 
        echo $log['ipaddress'];
        ?>
</label>
								</td>
示例#6
0
            ?>
                                                <td><?php 
            echo $content->groups;
            ?>
</td>
                                            <?php 
        }
        ?>
                                            <td class="text-center">
                                                <span class="glyphicon <?php 
        echo $content->status ? 'glyphicon-check' : 'glyphicon-unchecked';
        ?>
"></span>
                                            </td>
                                            <td class="text-right hidden-xs hidden-sm"><?php 
        echo date_when(human_to_unix($content->modified));
        ?>
</td>
                                            <td class="text-right hidden-xs hidden-sm"><?php 
        echo $content->timestamp;
        ?>
</td>
                                            <td class="small">
                                                <?php 
        if (have_permission('contents/edit') || have_permission('contents/remove')) {
            ?>

                                                    <div class="dropdown pull-right text-left">
                                                        <a data-toggle="dropdown" class="dropdown-toggle cp">
                                                            <span class="glyphicon glyphicon-pencil"></span>
                                                        </a>
示例#7
0
                <li class="media">
                    <div class="media-object pull-left">
                        <i class="glyphicon glyphicon-flash primary"></i>
                    </div>
                    <div class="media-body">
                        <p class="media-heading"><?php 
        echo $activity->subject;
        ?>
</p>
                        <p class="media-text">
                            <?php 
        echo $activity->body;
        ?>
                        </p>
                        <p class="media-meta"><?php 
        echo date_when(human_to_unix($activity->created));
        ?>
</p>
                    </div>
                </li>
                <?php 
    }
} else {
    ?>
            <blockquote>
                <small>
                    <?php 
    __('no_record');
    ?>
                </small>
            </blockquote>
示例#8
0
        ?>
</th>
            <?php 
    }
}
?>
        </tr>
				<tr>
            <th width="25%" class="nt">Last Restored</th>

            <?php 
if (is_array($history) && count($history) > 0) {
    foreach ($history as $historyvalue) {
        ?>
                         <th width="25%" class="nt"><?php 
        echo date_when(strtotime($historyvalue['modified']));
        ?>
</th>
            <?php 
    }
}
?>
        </tr>
				<tr>
            <th width="25%" class="nt">Modified Date</th>

            <?php 
if (is_array($history) && count($history) > 0) {
    foreach ($history as $historyvalue) {
        ?>
                         <th width="25%" class="nt">Modified on :<?php