当前位置: 首页>>代码示例>>PHP>>正文


PHP lang_decode函数代码示例

本文整理汇总了PHP中lang_decode函数的典型用法代码示例。如果您正苦于以下问题:PHP lang_decode函数的具体用法?PHP lang_decode怎么用?PHP lang_decode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了lang_decode函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: view

 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);
 }
开发者ID:unisexx,项目名称:drtooth,代码行数:7,代码来源:dentists.php

示例2: view

 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('system@thaigcd.ddc.moph.go.th', 'system@thaigcd.ddc.moph.go.th');
         $email = 'jakepong@hotmail.com';
         //$email = 'nooampzi@hotmail.com';
         $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);
 }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:25,代码来源:notices.php

示例3: view

 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);
 }
开发者ID:unisexx,项目名称:drtooth,代码行数:8,代码来源:talks.php

示例4: get_option

 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;
 }
开发者ID:unisexx,项目名称:imac,代码行数:9,代码来源:MY_html_helper.php

示例5: get_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;
 }
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:12,代码来源:category.php

示例6: foreach

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 
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:31,代码来源:weblinks_category_view.php

示例7: foreach

					<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();
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:31,代码来源:webboard_index.php

示例8: thumb

                       	<?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>
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:31,代码来源:inc_index.php

示例9: thumb

                            <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;">&nbsp;</div>
	                        <?endif;?>
                            <?endforeach;?>
                        </div>
              </div>
              <?endforeach;?>
            </div>
           <!------------------------------------------------------END TAB---------------------------------------------------> 
            </div>
        </div>
    </div>
开发者ID:unisexx,项目名称:drtooth,代码行数:31,代码来源:index.php

示例10: foreach

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 
}
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:30,代码来源:inc_group.php

示例11: lang_decode

					      <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>

						&nbsp; &nbsp; &nbsp;
						<button class="btn btn-large" type="reset">
开发者ID:unisexx,项目名称:imac,代码行数:31,代码来源:form.php

示例12: form_upload

?>
	<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>
	
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:30,代码来源:mediafile_form.php

示例13: lang_decode

		</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>
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:31,代码来源:group_form.php

示例14: cycle

	<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 
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:31,代码来源:category_index.php

示例15: lang_decode

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>
开发者ID:unisexx,项目名称:thaigcd2015,代码行数:31,代码来源:mediapublic_form.php


注:本文中的lang_decode函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。