コード例 #1
0
ファイル: blog.php プロジェクト: iplayfast/sc
 public function post($slug)
 {
     if ($slug == NULL) {
         redirect('/blog');
     }
     $data['blog_post'] = $this->Blog_model->get_post($slug);
     if ($data['blog_post'] == NULL) {
         redirect('/blog');
     }
     // format things and create useful vars (comments also go here once implemented)
     $data['blog_post']['date_posted'] = fdt($data['blog_post']['date_posted']);
     $data['blog_post']['author'] = $this->Blog_model->get_author($data['blog_post']['author_id']);
     $data['blog_post']['permalink'] = base_url('blog/post/' . $data['blog_post']['slug']);
     // present the page
     $data['uri_string'] = uri_string();
     $this->template->title($data['blog_post']['title'])->build('blog_single', $data);
 }
コード例 #2
0
ファイル: tableview_print.php プロジェクト: iplayfast/sc
		<table cellpadding="0" cellspacing="0">
			<tr>
				<td style="padding-right:25px;">
					<img width="200px;" src="<?php 
echo base_url('images/title.png');
?>
" alt="stockchase picture" style="margin-top:10px;"/>
					<p style="margin:10px 0;font-size:x-small;">Compiling comments that experts make about stocks while on public TV.</p>
				</td>
				<td width="100%">
					<h1><?php 
echo $params['title'];
?>
</h1>
					<h2>Generated <?php 
echo fdt(date('U'));
?>
</h2>
				</td>
			</tr>	
		</table>
	</div>

	
	<div class="tableview" id="<?php 
echo $table_name;
?>
">
	
	<table id="<?php 
echo $table_name;