function _pagination($offset = '', $id) { $limit = 5; $this->data['articles'] = $this->articles_count($limit, $offset, $id); $config['base_url'] = lang_url(null, 'blog/qhdapaginate/' . $this->uri->segment(4, 0)); $config['total_rows'] = $this->count($id); $config['per_page'] = $limit; $config['uri_segment'] = 5; $config['anchor_class'] = 'class="pagination "'; $this->pagination->initialize($config); $this->data['pag_links'] = $this->pagination->create_links(); $this->data['inner_view'] = "pagination"; return $this->load->view('qhda/article_in_book', $this->data, true); }
function blogcomments($offset = '', $id) { $limit = 10; $this->data['comments'] = $this->blogcomments_count($limit, $offset, $id); $config['base_url'] = lang_url(null, 'actions/bcommentspaginate/' . $id); $query = $this->db->get('blog_comments'); $config['total_rows'] = $query->num_rows(); $config['per_page'] = $limit; $config['uri_segment'] = 5; $config['anchor_class'] = 'class="pagination "'; $this->pagination->initialize($config); $this->data['pag_links'] = $this->pagination->create_links(); $this->data['inner_view'] = "pagination"; return $this->load->view('blog_comments', $this->data, true); }
<?php ini_set('session.use_trans_sid', '0'); // Include the random string file require './system/captcha/rand.php'; // Begin the session session_start(); /// // Set the session contents $_SESSION['captcha_id'] = $str; ?> <div id="main"> <form class="cmxform" id="signapForm" method="post" action="<?php echo lang_url() . "/" . time(); ?> "> <fieldset><legend><?php echo $msg; ?> </legend> <legend> </legend> <legend> </legend> <p> <label for="сusername"><?php
?> .pdf" title="pdf export"> <img width="22" src="<?php echo base_url(); ?> images/pdf.png" > </a> </span> <?php } ?> <div class="title" align="center"><?php echo $title; ?> </div> <hr> <div ><?php echo $this->lang->line('cat') . ": " . anchor(lang_id() . '/blog/viewcat/' . $catid, $blogcat_name, "title=\"{$blogcat_name}\"") . " " . $this->lang->line('author') . ": <a href=\"" . lang_url(null, 'user/profile/' . $name) . "\"> {$name}</a>"; ?> <?php echo date("F j, Y, g:i a", strtotime($datepost)); ?> </div> <hr> <br /> <div style="margin:5px;"> <?php echo syntaxhilight($textpost); ?> </div>
function pdf($data) { $this->load->library("pdf"); $this->pdf->link = lang_url(null, 'blog/article/' . $data->url . '.html'); $this->pdf->AddPage(); $this->pdf->SetY(15); $html = $this->load->view('article', $data, true); //html_entity_decode(htmlentities($html)) $html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8"); $this->pdf->writeHTML($this->xmlEntities($html), true, false, true, false, ''); $this->pdf->Output($data->url . '.pdf', 'D'); }
<li class="pms_new"><?php echo $this->lang->line('newpms'); ?> </li> <li class="pms_inbox"><?php echo $this->lang->line('inbox'); ?> : <?php echo $inbox; ?> </li> <li class="pms_outbox"><?php echo $this->lang->line('outbox'); ?> </li> </ul> <a href="<?php echo lang_url(null, "user/settings"); ?> "><?php echo lang('settings'); ?> </a> || <a href="<?php echo lang_url(null, "user/logout"); ?> "><?php echo lang('logout'); ?> </a> </p>
echo $id; ?> "> <input style="display: none;" class="starrate " type="radio" name="star" value="0.50"/> <input style="display: none;" class="starrate" type="radio" name="star" value="1.00"/> <input style="display: none;" class="starrate" type="radio" name="star" value="1.50"/> <input style="display: none;" class="starrate" type="radio" name="star" value="2.00"/> <input style="display: none;" class="starrate" type="radio" name="star"value="2.50"/> <input style="display: none;" class="starrate" type="radio" name="star" value="3.00"/> <input style="display: none;" class="starrate" type="radio" name="star" value="3.50" /> <input style="display: none;" class="starrate" type="radio" name="star" value="4.00"/> <input style="display: none;" class="starrate" type="radio" name="star" value="4.50"/> <input style="display: none;" class="starrate" type="radio" name="star" value="5.00"/> </span></div> <p> <?php echo autogtrans($descr, 'ru'); ?> </p> <a class="downloadbox read_more tool_tip" title="<?php echo $details; ?> " href="<?php echo lang_url(null, 'apps/predownload/' . $id); ?> " ><?php echo $this->lang->line('download'); ?> </a> </div> </div>
<?php ini_set('session.use_trans_sid', '0'); // Include the random string file require './system/captcha/rand.php'; // Begin the session session_start(); /// // Set the session contents $_SESSION['captcha_id'] = $str; ?> <div id="main"> <form class="cmxform" id="signapForm" method="post" action="<?php echo lang_url(null, 'register/') . time(); ?> "> <fieldset><legend></legend> <legend> </legend> <p> <label for="сusername"><?php echo $this->lang->line('username'); ?> </label> <input id="сusername" name="username" />
echo site_url("forum"); ?> ' class="link-menu">Forum</a></li> <li><a href="<?php echo lang_url("fr"); ?> "> <img src="<?php echo base_url(); ?> images/france.png" class="img-responsive" alt="Responsive image" id="image-user"> </a> </li> <li><a href="<?php echo lang_url("en"); ?> "> <img src="<?php echo base_url(); ?> images/angleterre.jpg" class="img-responsive" alt="Responsive image" id="image-user"> </a> </li> </ul> </div> </div> </header> <!-- HEADER END-->
function view_allcat() { $result = ''; $query = $this->db->get($this->db->dbprefix('downcat')); if ($query->num_rows > 0) { foreach ($query->result() as $row) { //print_r($row); $href = ""; $title = ""; if ($this->permissions->simple(self::READ, unserialize($row->permission)) == true) { $href = lang_url('', 'apps/viewcat/' . $row->id); $title = 'title=""'; } else { $href = current_url() . "#"; $title = 'title="' . $this->lang->line('accesdenie') . '"'; } $result .= "<p style=\"margin:10px;\"><div class=\"title\"><a {$title} href=\"{$href}\" class=\"tool_tip\">{$row->catname}</a></div>{$row->catdescr}</p>"; } } return $result; }
</a> <a href="<?php echo lang_url() . 'apps'; ?> "><?php echo $this->lang->line('apps'); ?> </a> <a href="<?php echo lang_url() . 'forum'; ?> "><?php echo $this->lang->line('forum'); ?> </a> <a href="<?php echo lang_url() . 'about'; ?> "><?php echo $this->lang->line('contact'); ?> </a></div> <div class="right_footer"># </div> </div> </div> <!-- end of main_container -->
<div class="login_form_row"> <label class="login_label"><?php echo $this->lang->line('password'); ?> :</label> <input type="password" name="pass" min="6" class="login_input " required="required" /> </div> <button class="buttons" style="float:right;margin-top: 30px;" type="submit"><?php echo $this->lang->line('login_button'); ?> </button> </form> <div style="width: 60%;float:left;display: table;padding: 3px;"> <a class="buttons" style="float:left;margin-right: 4px;" href="<?php echo lang_url(null, 'register'); ?> "> <?php echo $this->lang->line('reg'); ?> </a> <!---<a class="buttons" style="float:left;" href="#" >buttons</a>--> </div> <script> $("#login_box").validator(); </script>
<div align="center"><h3><a href="<?php echo lang_url('', 'blog/article/' . $url . '.html'); ?> "><?php echo $title; ?> </a></h3><br /> </div><p> <?php echo $shorttext; ?> </p> <hr>
<div id="ajax_content" style="width: 490px;"> <span class="ajax_pag"><?php echo $pag_links; ?> </span> <?foreach($articles as $item):?> <div align="center"><h3><a href="<?php echo lang_url('', 'blog/qhdaticle/' . $item->id . '.html'); ?> "><?php echo $item->name; ?> </a></h3></div><br /> <p> <?php echo syntaxhilight(truncate($item->body, 200)); ?> </p> <hr> <?endforeach;?> <span class="ajax_pag"><?php echo $pag_links; ?> </span></div>