function view($id) { $data['rs'] = new Dentist($id); $this->template->title(lang_decode($data['rs']->name) . ' - DrTooth Dental Clinic'); $this->template->append_metadata(meta('description', lang_decode($data['rs']->name) . strip_tags(lang_decode($data['rs']->detail)))); $this->template->build('view', $data); }
function view($id) { $data['notice'] = new Notice($id); if ($_POST) { $data['notice_comment'] = new Notice_comment(); $_POST['notice_id'] = $id; $data['notice_comment']->from_array($_POST); $data['notice_comment']->save(); $this->load->library('email'); $config['mailtype'] = 'html'; $this->email->initialize($config); $this->email->from('*****@*****.**', '*****@*****.**'); $email = '*****@*****.**'; //$email = '*****@*****.**'; $this->email->to($email); $this->email->subject('เสนอแนะวิจารณ์ - ' . lang_decode($data['notice']->title)); $this->email->message($this->load->view('view', $data, TRUE)); $this->email->send(); set_notify('success', 'บันทึกข้อเสนอแนะของคุณเรียบร้อยแล้วค่่ะ'); redirect($_SERVER['HTTP_REFERER']); } $data['type'] = array('7' => 'ico_notify_03.png', '8' => 'ico_notify_06.png', '9' => 'ico_notify_08.png', '193' => 'ico_notify_10.png'); $this->template->set_layout('layout_blank'); $this->template->build('notice_view', $data); }
function view($id) { $data['rs'] = new Talk($id); $this->template->title(lang_decode($data['rs']->title) . ' - DrTooth Dental Clinic'); // $this->template->append_metadata( meta('description',lang_decode($data['rs']->meta_description))); // $this->template->append_metadata( meta('keywords',lang_decode($data['rs']->meta_keyword))); $this->template->build('view', $data); }
function get_option($value, $text, $table, $condition = NULL, $lang = NULL) { $CI =& get_instance(); $query = $CI->db->query("select * from {$table} {$condition}"); foreach ($query->result() as $item) { $option[$item->{$value}] = lang_decode($item->{$text}, $lang); } return $option; }
function get_option($lang = 'th') { $query = "SELECT id,name\n\t\t\t\t\tFROM {$this->table}\n\t\t\t\t\tWHERE module = '" . plural($this->parent['model']) . "'\n\t\t\t\t\tAND parents <> 0 \n\t\t\t\t\tORDER BY id asc"; //$query = $this->query($query)->all_to_assoc('id','name'); //return $query; $CI =& get_instance(); $query = $CI->db->query($query); foreach ($query->result() as $item) { $option[$item->id] = lang_decode($item->name, $lang); } return $option; }
foreach ($categories->weblink->get_page(limit()) as $weblink) { ?> <tr> <td><a href="<?php echo $weblink->url; ?> " target="<?php echo $weblink->target; ?> "><img src="uploads/weblinks/<?php echo $weblink->image; ?> " height="90" width="98"></a></td> <td style="padding: 10px; font-size:12px;" valign="top"> <?php echo lang_decode($weblink->description); ?> <br> <a class="link_web B" href="<?php echo $weblink->url; ?> " target="<?php echo $weblink->target; ?> "><?php echo $weblink->url; ?> </a> </td> </tr> <?php
<th>หมวดหมู่</th> <th width="130"></th> </tr> <?php foreach ($webboard_quizs as $webboard_quiz) { ?> <tr <?php echo cycle(); ?> > <td><?php echo $webboard_quiz->title; ?> </td> <td><?php echo lang_decode($webboard_quiz->category->name, 'th'); ?> </td> <td><a href="faqs/admin/faqs/form/<?php echo $webboard_quiz->id; ?> ">ส่งไปยังรายการคำถาม</a></div> </td> </tr> <?php } ?> </table> <?php echo $webboard_quizs->pagination();
<?php } ?> <div class="boximg"> <a rel="lightbox[gallery]" href="uploads/galleries/<?php echo $gallery->image; ?> " target="_self"> <?php echo thumb("uploads/galleries/" . $gallery->image, 83, 71, 0); ?> <!-- <img src="uploads/galleries/<?php echo $gallery->image; ?> " width="83" height="71" <?php echo $gallery->title ? 'title="' . $gallery->title . '" class="imgtooltip"' : ''; ?> <?php echo $gallery->title ? 'alt="' . lang_decode($gallery->category->name) . ':' . $gallery->title . '"' : ''; ?> /> --> </a><span></span></div> <?php } ?> </li> </ul> </div> </div> <div class="clear"></div> </div>
<div class="col-md-3" style="width:257.5px;"> <div class="dr-pic" style="text-align:center;"> <a href="dentists/view/<?php echo $item->id; ?> "><?php echo thumb('uploads/dentists/' . $item->image, '180', '220', '1', 'class="border-dr-pic"'); ?> </a> </div> <span class="label"><?php echo lang_decode($item->name); ?> </span> <div class="position"><?php echo lang_decode($item->experience); ?> </div> </div> <?if(($key2+1)%4 == 0):?> <div style="clear:both; padding-top:40px;"> </div> <?endif;?> <?endforeach;?> </div> </div> <?endforeach;?> </div> <!------------------------------------------------------END TAB---------------------------------------------------> </div> </div> </div>
foreach ($notices as $notice) { ?> <div class="box <?php echo alternator('', 'alt'); ?> "> <a href="notices/view/<?php echo $notice->id; ?> " class="thumb"><img src="<?php echo is_file('uploads/notice/thumbnail/' . $notice->image) ? 'uploads/notice/thumbnail/' . $notice->image : 'themes/thaigcd/photo/nophoto.gif'; ?> " width="77" height="64" /></a> <div class="box_info"> <span><?php echo mysql_to_th($notice->start_date); ?> </span> <a href="notices/view/<?php echo $notice->id; ?> "><h3><?php echo lang_decode($notice->title); ?> </h3></a> </div> </div> <div class="clear"></div> <?php }
<input rel="en" id="name" class="span6" type="text" name="name[en]" value="<?php echo lang_decode($rs->name, 'en'); ?> "> </div> </div> <div class="control-group"> <label class="control-label" for="form-field-9">รายละเอียด</label> <div class="controls"> <div rel="th"><textarea name="detail[th]" class="full tinymce"><?php echo lang_decode($rs->detail, 'th'); ?> </textarea></div> <div rel="en"><textarea name="detail[en]" class="full tinymce"><?php echo lang_decode($rs->detail, 'en'); ?> </textarea></div> </div> </div> <div class="form-actions"> <?php echo @form_referer(); ?> <button class="btn btn-large btn-info" type="submit"> <i class="icon-ok bigger-110"></i>บันทึก </button> <button class="btn btn-large" type="reset">
?> <tr> <th>รูปภาพ :</th> <td><?php echo form_upload('image'); ?> ขนาด 77 x 64 px)</td> </tr> <tr> <th>หัวข้อ :</th> <td> <?php echo form_input('title[th]', lang_decode($mediafiles->title, 'th'), 'class=full rel=th'); ?> <?php echo form_input('title[en]', lang_decode($mediafiles->title, 'en'), 'class=full rel=en'); ?> </td> </tr> <tr> <th>เลือกรูปแบบการนำเข้า video</th> <td><input id="upload" type="radio" name="import" value="upload"> <label for="upload">อัพโหลด</label> <input id="embed" type="radio" name="import" value="embed"> <label for="embed">โค้ดวิดีโอ</label></td> </tr> <tr class="upload"> <th>ไฟล์อัพโหลด :</th> <td><input type="text" name="file" value="<?php echo $mediafiles->file; ?> "/><input type="button" name="browse" value="เลือกไฟล์" onclick="browser($(this).prev(),'mediafiles')" /> (max of size 50 mb : mp3,mp4,flv)</td> </tr>
</td> </tr> <tr> <th>แนะนำกลุ่ม(บทคัดย่อ) :</th> <td> <div rel="th"><textarea name="intro[th]" class="full editor"><?php echo lang_decode($group->aboutus, 'th'); ?> </textarea></div> <div rel="en"><textarea name="intro[en]" class="full editor"><?php echo lang_decode($group->aboutus, 'en'); ?> </textarea></div> </td> </tr> <tr> <th>แนะนำกลุ่ม :</th> <td> <div rel="th"><textarea name="aboutus[th]" class="full editor"><?php echo lang_decode($group->aboutus, 'th'); ?> </textarea></div> <div rel="en"><textarea name="aboutus[en]" class="full editor"><?php echo lang_decode($group->aboutus, 'en'); ?> </textarea></div> </td> </tr> <tr><th></th><td><input type="submit" value="บันทึก" /><input type="button" name="back" value="ย้อนกลับ" onclick="window.location = 'groups/admin/groups'" /></td></tr> </table> </form>
<tr <?php echo cycle(); ?> > <td><input type="checkbox" name="status" value="<?php echo $category->id; ?> " <?php echo $category->status == "approve" ? 'checked="checked"' : ''; ?> <?php echo @$_POST['status'] == "approve" ? '' : 'disabled="disabled"'; ?> /></td> <td><?php echo lang_decode($category->name, ''); ?> </td> <td><?php echo $category->description; ?> </td> <td> <a class="btn" href="newsletters/admin/categories/form/<?php echo $category->id; ?> " >แก้ไข</a> <a class="btn" href="newsletters/admin/categories/delete/<?php echo $category->id; ?> " onclick="return confirm('<?php
echo lang_decode($mediapublics->title, 'th'); ?> "> <input rel="en" type="text" name="title[en]" class="full" value="<?php echo lang_decode($mediapublics->title, 'en'); ?> "> </td> </tr> <tr> <th>เนื้อหา :</th> <td> <textarea rel="th" name="detail[th]" class="full"><?php echo lang_decode($mediapublics->detail, 'th'); ?> </textarea> <textarea rel="en" name="detail[en]" class="full"><?php echo lang_decode($mediapublics->detail, 'en'); ?> </textarea> </td> </tr> <tr><th></th><td><input type="submit" value="บันทึก"><?php echo form_back(); ?> </td></tr> </table> <?php echo form_referer(); ?> </form>
<li><a href="<?php echo sitemap($category->module); ?> "><?php echo lang_decode($category->name); ?> </a> <ul> <?php foreach ($childs->where('parents = ' . $category->id)->get() as $child) { ?> <li><a href="<?php echo sitemap($child->module, $child->id); ?> "><?php echo lang_decode($child->name); ?> </a></li> <?php } ?> </ul> </li> <?php if ($key == $num - 1) { ?> </ul> </div> <div style="float:left; width: 50%;"> <ul> <?php
echo $knowledge->id; ?> " <?php echo $knowledge->status == "approve" ? 'checked="checked"' : ''; ?> <?php echo $_POST['status'] == "approve" ? '' : 'disabled="disabled"'; ?> /></td> <td><?php echo lang_decode($knowledge->title, 'th'); echo owner_name($knowledge); ?> </td> <td><?php echo anchor('knowledges/admin/knowledges?category_id=' . $knowledge->category_id, lang_decode($knowledge->category->name, '')); ?> </td> <td><?php echo approve_comment($knowledge); ?> </td> <td> <a class="btn" href="knowledges/admin/knowledges/form/<?php echo $knowledge->id; ?> " >แก้ไข</a> <a class="btn" href="knowledges/admin/knowledges/delete/<?php echo $knowledge->id; ?> " onclick="return confirm('<?php
</div><br> <a href="talks/view/<?php echo $row->id; ?> "><?php echo lang("view_all"); ?> </a> <div class="by" style="margin-top:40px;"> </div> </div> <div class="col-right1"> <img src="uploads/talks/<?php echo $row->image; ?> " alt="<?php echo lang_decode($row->alt); ?> " width="280" height="280" class="picDentistTalk" style="margin-top:10px;"> </div> <div style="clear:both;"> </div> <div class="lineDentistTalk1"> </div> <?endforeach;?> <?php echo $rs->pagination(); ?> <div style="clear:both;"> </div> </div> <!------------------------------------------------------END Col1--------------------------------------------------->
<th>เหตุผล</th> <th width="90"></th> </tr> <?php foreach ($comments as $comment) { ?> <tr <?php echo cycle(); ?> > <td><?php echo $comment->information_comment->comment; ?> </td> <td><?php echo lang_decode($comment->information_comment->information->title); ?> </td> <td><?php echo $comment->reason; ?> </td> <td> <a class="btn" href="informations/admin/information_alerts/delete/<?php echo $comment->information_comment_id; ?> " onclick="return confirm('<?php echo lang('notice_confirm_delete'); ?> ')">ลบ</a> </td>
<ul class="mediapublic"> <?php foreach ($media as $mediapublic) { ?> <li> <a href="mediapublics/download/<?php echo $mediapublic->id; ?> "><?php echo lang_decode($mediapublic->title); ?> <span class="date"><?php echo mysql_to_th($mediapublic->created, 'S', TRUE); ?> </span></a> </li> <?php } ?> </ul> <a class="pull-right" href="mediapublics/index/<?php echo $group_id; ?> ">ดูทั้งหมด</a> <br clear="all">
echo lang_decode($information->intro, 'th'); ?> </textarea> <textarea name="intro[en]" id="intro" class="full" rel="en"><?php echo lang_decode($information->intro, 'en'); ?> </textarea> </td> </tr> <tr> <th>รายละเอียด :</th> <td> <div rel="th"><textarea name="detail[th]" class="full tinymce"><?php echo lang_decode($information->detail, 'th'); ?> </textarea></div> <div rel="en"><textarea name="detail[en]" class="full tinymce"><?php echo lang_decode($information->detail, 'en'); ?> </textarea></div> </td> </tr> <tr><th></th><td><input type="submit" value="บันทึก" /><?php echo form_back(); ?> </td></tr> </table> <?php echo form_referer(); ?> </form>
echo is_file('uploads/knowledge/thumbnail/' . $knowledge->image) ? 'uploads/knowledge/thumbnail/' . $knowledge->image : 'themes/thaigcd/photo/nophoto.gif'; ?> " width="77" height="64" /></a> <div class="box_info box-tag-detail"> <span><?php echo mysql_to_th($knowledge->start_date); ?> </span> <a href="knowledges/view/<?php echo $knowledge->id; ?> "><h3 style="color:#006600;"><?php echo lang_decode($knowledge->title); ?> </h3></a> <p><?php echo lang_decode($knowledge->intro); ?> </p> </div> </div> <div class="clear"></div> <?php } ?> <?php echo $knowledges->pagination(); ?> </div> <div class="paddbot10"></div>
<?php if (is_file($academics->image)) { ?> <img width="100" src="<?php echo $academics->image; ?> "> <?php } ?> </td> <td valign="top" style="padding: 10px;"><h3><?php echo lang_decode($academics->title); ?> </h3><p><?php echo lang_decode($academics->detail); ?> </p> <a rel="ajax" href="academics/download/<?php echo $academics->id; ?> "><img width="80" height="24" style="margin-top: 5px;" title="ดาวน์โหลดไฟล์นี้" alt="ดาวน์โหลดไฟล์นี้" src="themes/gcdnew/images/btn_save.png"></a> <div style="text-align: right;"><span class="f11 TxtGray2">ดาวน์โหลดไป <span class="counter"><?php echo $academics->counter; ?> </span> ครั้ง</span></div></td> </tr> <?php } ?> </tbody>
</textarea> <textarea name="intro[en]" id="intro" class="full" rel="en"><?php echo lang_decode($notice->intro, 'en'); ?> </textarea> </td> </tr> <tr> <th>รายละเอียด :</th> <td> <div rel="th"><textarea name="detail[th]" class="full tinymce"><?php echo lang_decode($notice->detail, 'th'); ?> </textarea></div> <div rel="en"><textarea name="detail[en]" class="full tinymce"><?php echo lang_decode($notice->detail, 'en'); ?> </textarea></div> </td> </tr> <tr><th>ชื่อไฟล์ 1 :</th><td><input type="text" name="file_name1" value="<?php echo $notice->file_name1; ?> "/></td></tr> <tr><th>ไฟล์แนบ 1 :</th><td><input type="text" name="file_src1" value="<?php echo $notice->file_src1; ?> "/><input type="button" name="browse" value="เลือกไฟล์" onclick="browser($(this).prev(),'file')" /></td></tr> <tr><th>ชื่อไฟล์ 2 :</th><td><input type="text" name="file_name2" value="<?php echo $notice->file_name2; ?>
<div class="right"><a href="<?php echo $mediafile->file; ?> "><img width="16" height="16" title="download" alt="download" style="padding-right: 10px;" src="themes/gcdnew/images/save.png"></a></div> <?php } ?> <a rel='ajax' href="<?php echo $mediafile->id; ?> "><h3><?php echo lang_decode($mediafile->title); ?> </h3></a> <p class="tag"><strong>ประเภท :</strong> <span><?php echo lang_decode($mediafile->category->name, ''); ?> </span> , <strong>กลุ่มงาน :</strong> <span><?php echo lang_decode($mediafile->user->group->name); ?> </span></p> </div> </div> <?php } ?> <?php echo $mediafiles_list->pagination(); ?> </div> <div class="tl"></div><div class="tr"></div><div class="bl"></div><div class="br"></div><div class="shadow"></div></div>
" target="_blank"><i class="fa fa-2x fa-fw fa-facebook text-inverse"></i></a> <a href="<?php echo lang_decode($rs->twitter); ?> " target="_blank"><i class="fa fa-2x fa-fw fa-twitter text-inverse"></i></a> <a href="<?php echo lang_decode($rs->googleplus); ?> " target="_blank"><i class="fa fa-2x fa-google-plus-square text-inverse"></i></a> </div> </div> <div class="row"> <div class="col-md-12 hidden-xs text-right"> <a href="<?php echo lang_decode($rs->facebook); ?> " target="_blank"><i class="fa fa-2x fa-fw fa-facebook text-inverse"></i></a> <a href="<?php echo lang_decode($rs->twitter); ?> " target="_blank"><i class="fa fa-2x fa-fw fa-twitter text-inverse"></i></a> <a href="<?php echo lang_decode($rs->googleplus); ?> " target="_blank"><i class="fa fa-2x fa-google-plus-square text-inverse"></i></a> </div> </div> </div> </div> </div> </footer>
<div class="row"> <?foreach($rs as $row):?> <div class="col-md-3" style="margin-bottom:40px;"> <div class="dr-pic" style="text-align:center;"> <a href="patients/view/<?php echo $row->id; ?> "> <?php echo thumb('uploads/patients/' . $row->image, '180', '220', '1', 'class="border-dr-pic"'); ?> </a> </div> <span class="label"><?php echo lang_decode($row->name); ?> </span> </div> <?endforeach;?> </div> <!------------------------------------------------------END ---------------------------------------------------> </div> <?php echo $rs->pagination(); ?> </div> </div> </div> <div style="clear:both; margin-bottom:80px;"> </div>
<table class="form"> <tr class="trlang"><th></th><td class="lang"><a href="th" class="active flag th">ไทย</a><a href="en" class="flag en">อังกฤษ</a></td></tr> <tr> <th>หัวข้อ :</th> <td> <input type="text" name="title[th]" rel="th" value="<?php echo lang_decode($page->title, 'th'); ?> " class="full" /> <input type="text" name="title[en]" rel="en" value="<?php echo lang_decode($page->title, 'en'); ?> " class="full" /> </td> </tr> <tr> <th>รายละเอียด :</th> <td> <div rel="th"><textarea name="detail[th]" class="full tinymce"><?php echo lang_decode($page->detail, 'th'); ?> </textarea></div> <div rel="en"><textarea name="detail[en]" class="full tinymce"><?php echo lang_decode($page->detail, 'en'); ?> </textarea></div> </td> </tr> <tr><th></th><td><input type="submit" value="บันทึก" /><input type="button" name="back" value="ย้อนกลับ" onclick="window.location = 'pages/admin/pages'" /></td></tr> </table> </form>
?> <tr> <td> <label> <input class="ace-switch" type="checkbox" name="status" value="<?php echo $row->id; ?> " <?php echo $row->status == "approve" ? 'checked="checked"' : ''; ?> /> <span class="lbl"></span> </label> </td> <td><?php echo lang_decode($row->name, 'th'); ?> </td> <!-- <td><?php echo $row->category->name; ?> </td> --> <td class="td-actions"> <div class="hidden-phone visible-desktop action-buttons"> <a class="green" href="services/admin/services/form/<?php echo $row->id; ?> "> <i class="icon-pencil bigger-130"></i> </a>
<div id="data"> <?php foreach ($groups as $group) { ?> <div class="box-group"> <div class="box_info"> <h3><?php echo $group->id . '. ' . lang_decode($group->name); ?> </h3> <span><?php echo lang_decode($group->detail); ?> </span> <h4> <?php if ($group->phone) { ?> <img src="themes/gcdnew/images/ico_phone.gif" alt="Phone" height="20" width="20"> <?php echo $group->phone; ?> <?php } ?> <?php if ($group->fax) { ?> <img src="themes/gcdnew/images/ico_fax.gif" alt="Fax" style="padding-left: 10px;" height="20" width="20"> <?php echo $group->fax; ?>