本文整理汇总了PHP中translate_admin函数的典型用法代码示例。如果您正苦于以下问题:PHP translate_admin函数的具体用法?PHP translate_admin怎么用?PHP translate_admin使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了translate_admin函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: editmetas
public function editmetas($param = '')
{
if ($this->input->post()) {
$this->form_validation->set_rules('url', 'URL', 'required|trim|xss_clean');
$this->form_validation->set_rules('name', 'Name', 'required|trim|xss_clean');
$this->form_validation->set_rules('title', 'Title', 'required|trim|xss_clean');
$this->form_validation->set_rules('description', 'Meta Description', 'required|trim|xss_clean');
$this->form_validation->set_rules('keyword', 'Meta Keyword', 'required|trim|xss_clean');
if ($this->form_validation->run()) {
$id = $this->uri->segment(4, 0);
$updateData = array();
$updateData['url'] = $this->input->post('url');
$updateData['name'] = $this->input->post('name');
$updateData['title'] = $this->input->post('title');
$updateData['meta_description'] = $this->input->post('description');
$updateData['meta_keyword'] = $this->input->post('keyword');
$condition = array('id' => $id);
$this->Common_model->updateTableData('metas', $id, $condition, $updateData);
$this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('success', translate_admin('Location updated successfully.')));
redirect_admin('managemetas');
}
} else {
echo 'error';
}
$conditions = array("metas.id" => $param);
$data['metas'] = $this->Common_model->getTableData('metas', $conditions)->row();
$conditions = array("metas.id" => $param);
$data['message_element'] = "administrator/managemetas/editmanagemetas";
$this->load->view('administrator/admin_template', $data);
}
开发者ID:empotix,项目名称:travelo,代码行数:30,代码来源:managemetas.php
示例2: google_settings
public function google_settings()
{
if ($this->input->post('update')) {
$data['string_value'] = $this->input->post('gmap_api_key');
$this->db->where('code', 'SITE_GMAP_API_KEY');
$this->db->update('settings', $data);
echo '<p>' . translate_admin('Settings updated successfully') . '</p>';
} else {
$data['gmap_api_key'] = $this->db->get_where('settings', array('code' => 'SITE_GMAP_API_KEY'))->row()->string_value;
$data['message_element'] = "administrator/social/google_settings";
$this->load->view('administrator/admin_template', $data);
}
}
开发者ID:empotix,项目名称:travelo,代码行数:13,代码来源:social.php
示例3: update
public function update()
{
$data['fixed_status'] = $this->input->post('is_fixed');
$data['fixed_amt'] = $this->input->post('total');
$data['currency'] = $this->input->post('currency');
$data['type'] = $this->input->post('type');
$data['trip_amt'] = $this->input->post('tripf');
$data['trip_per'] = $this->input->post('tripp');
$data['rent_amt'] = $this->input->post('rentf');
$data['rent_per'] = $this->input->post('rentp');
$this->db->where('id', 1);
$this->db->update('referral_management', $data);
$this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('success', translate_admin('Updated successfully!')));
redirect('administrator/referrals/index');
}
开发者ID:BersnardC,项目名称:DROPINN,代码行数:15,代码来源:referrals.php
示例4: index
public function index()
{
$this->form_validation->set_error_delimiters($this->config->item('field_error_start_tag'), $this->config->item('field_error_end_tag'));
if ($this->input->post()) {
$this->form_validation->set_message('is_natural', 'You must enter a valid %s number');
$this->form_validation->set_rules('phone', 'Phone', 'required|trim|xss|is_natural|xss_clean');
$this->form_validation->set_rules('email', 'Email', 'trim|required|valid_email|xss_clean');
$this->form_validation->set_rules('city', 'City', 'required|trim|xss_clean');
$this->form_validation->set_rules('state', 'State', 'required|trim|xss_clean');
$this->form_validation->set_rules('country', 'Country', 'required|trim|xss_clean');
$this->form_validation->set_rules('pincode', 'Pincode to', 'required|trim|alpha_numeric|xss_clean');
$this->form_validation->set_rules('street', 'Street', 'required|trim|xss_clean');
$this->form_validation->set_rules('name', 'Name', 'required|trim|xss_clean');
if ($this->form_validation->run()) {
$data['phone'] = $this->input->post('phone');
$data['email'] = $this->input->post('email');
$data['name'] = $this->input->post('name');
$data['street'] = $this->input->post('street');
$data['city'] = $this->input->post('city');
$data['state'] = $this->input->post('state');
$data['country'] = $this->input->post('country');
$data['pincode'] = $this->input->post('pincode');
$rows = $this->db->get_where('contact_info', array('id' => '1'))->num_rows();
if ($rows > 0) {
$this->db->where('id', 1);
$this->db->update('contact_info', $data);
} else {
$this->db->insert('contact_info', $data);
}
//echo '<p>Contact info updated successfully</p>';
$this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('success', translate_admin('Contact info updated successfully')));
redirect_admin('contact');
} else {
$data['row'] = $this->db->get_where('contact_info', array('id' => '1'))->row();
$data['message_element'] = "administrator/contact/view_contact_info";
$this->load->view('administrator/admin_template', $data);
}
} else {
$data['row'] = $this->db->get_where('contact_info', array('id' => '1'))->row();
$data['message_element'] = "administrator/contact/view_contact_info";
$this->load->view('administrator/admin_template', $data);
}
}
开发者ID:empotix,项目名称:travelo,代码行数:43,代码来源:contact.php
示例5: updatetheme_select
public function updatetheme_select()
{
if ($this->input->post()) {
$color = $this->input->post('color');
$data['status'] = 1;
$this->db->update('theme_select', array('status' => '0'));
$this->db->where('color', $color);
$this->db->update('theme_select', $data);
$data['get_table'] = $this->db->get("theme_select");
$data['color'] = $color;
copy(css_url() . "/map_icons/map_pins_sprite_001.png", FCPATH . "images/map_icons/map_pins_sprite_001.png");
copy(css_url() . "/logo/logo.png", FCPATH . "logo/logo.png");
$this->recurse_copy(FCPATH . "css_" . $color . "/templates/blue/overwrite_images", FCPATH . "images/");
$data['message'] = translate_admin("Updated Successfully");
$data['message_element'] = "administrator/viewtheme_select";
$this->load->view('administrator/admin_template', $data);
} else {
redirect(admin_url() . "/theme_select/viewtheme_select");
}
}
开发者ID:BersnardC,项目名称:DROPINN,代码行数:20,代码来源:theme_select.php
示例6: index
public function index()
{
if ($this->input->post('update')) {
$this->form_validation->set_rules('google_analytics', 'Google Account Client ID', 'required');
if ($this->form_validation->run()) {
$google_analytics['transaction_id'] = $this->input->post('google_analytics');
$this->db->update('google_analytics', $google_analytics);
$data['message_element'] = "administrator/google_analytics";
$this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('success', translate_admin('Changes successfully updated')));
redirect_admin('Google_Analytics');
} else {
$data['message_element'] = "administrator/google_analytics";
$this->load->view('administrator/admin_template', $data);
}
// $this->load->view('administrator/admin_template', $data);
} else {
$google_analyze = $this->db->select('transaction_id')->get('google_analytics')->row()->transaction_id;
$data['message_element'] = "administrator/google_analytics";
$this->load->view('administrator/admin_template', $data);
}
}
开发者ID:BersnardC,项目名称:DROPINN,代码行数:21,代码来源:Google_Analytics.php
示例7: addlocation
public function addlocation($param = '')
{
$this->form_validation->set_error_delimiters($this->config->item('field_error_start_tag'), $this->config->item('field_error_end_tag'));
if ($this->input->post()) {
$this->form_validation->set_rules('name', 'Name', 'required|trim|xss_clean');
$this->form_validation->set_rules('location', 'Location', 'required|trim|xss_clean');
if ($this->form_validation->run()) {
$updateData = array();
$insertData['name'] = $this->input->post('name');
$insertData['category_id'] = 1;
$insertData['search_code'] = $this->input->post('location');
$this->Common_model->inserTableData('toplocations', $insertData);
$this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('success', translate_admin('Location updated successfully.')));
redirect_admin('toplocation');
}
}
$data['categories'] = $this->Common_model->getTableData('toplocation_categories');
$conditions = array("toplocations.id" => $param);
$data['result'] = $this->Common_model->getToplocation($conditions)->row();
$data['message_element'] = "administrator/toplocation/add_location";
$this->load->view('administrator/admin_template', $data);
}
开发者ID:empotix,项目名称:travelo,代码行数:22,代码来源:toplocation.php
示例8: editCancellation
/**
* Loads Manage Static Pages View.
*
* @access private
* @param nil
* @return void
*/
public function editCancellation()
{
//Get id of the category
$id = is_numeric($this->uri->segment(4)) ? $this->uri->segment(4) : 0;
//Intialize values for library and helpers
$this->form_validation->set_error_delimiters($this->config->item('field_error_start_tag'), $this->config->item('field_error_end_tag'));
if ($this->input->post('editCancellation')) {
//Set rules
$this->form_validation->set_rules('site_name', 'Site Name', 'required|trim|xss_clean');
$this->form_validation->set_rules('cancellation_title', 'Cancellation Title', 'required|trim|xss_clean|callback_pageNameCheck');
$this->form_validation->set_rules('cancellation_content', 'Cancellation Content', 'required|trim|xss_clean');
if ($this->form_validation->run()) {
//prepare update data
$updateData = array();
$updateData['site_name'] = $this->input->post('site_name');
$updateData['cancellation_title'] = $this->input->post('cancellation_title');
$updateData['cancellation_content'] = $this->input->post('cancellation_content');
$updateKey = array('cancellation_policy.id' => $this->uri->segment(4));
//Add Groups
$this->cancellation_model->updateCancellation($updateKey, $updateData);
//Notification message
$this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('success', translate_admin('Cancellation Policy updated successfully')));
redirect_admin('cancellation/viewCancellation');
}
}
//If - Form Submission End
//Set Condition To Fetch The Faq Category
$condition = array('cancellation_policy.id' => $id);
//Get Groups
$data['cancellations'] = $this->cancellation_model->getCancellation($condition);
//Load View
$data['message_element'] = "administrator/cancellation_policy/editCancellation";
$this->load->view('administrator/admin_template', $data);
}
开发者ID:empotix,项目名称:travelo,代码行数:41,代码来源:cancellation.php
示例9: set_value
<textarea class="" name="email_body_html"><?php
echo set_value('email_body_html');
?>
</textarea>
<span style="position: relative; left: 455px; top: -15px;"><?php
echo form_error('email_body_html');
?>
</span>
</td>
</tr>
<tr>
<td></td>
<td>
<input value="<?php
echo translate_admin('Submit');
?>
" name="addemailTemplate" type="submit">
</td>
</tr>
</table>
</form>
</div>
<!-- TinyMCE inclusion -->
<script type="text/javascript" src="<?php
echo base_url();
?>
开发者ID:BersnardC,项目名称:DROPINN,代码行数:31,代码来源:add_template.php
示例10: translate_admin
echo translate_admin('Today Reservation');
?>
</td>
<td width="20%">:
<?php
if (isset($today_reservation)) {
echo $today_reservation;
} else {
echo '0';
}
?>
</td>
<td></td>
</tr>
</table>
</li>
</ul>
</div>
</div>
<h2><?php
echo translate_admin('Version');
?>
</h2>
<ul>
<li><a href="#"><?php
echo translate_admin('Installed Version');
?>
- 3.0.3</a></li>
</ul>
</div>
开发者ID:empotix,项目名称:travelo,代码行数:30,代码来源:view_home.php
示例11: translate_admin
</tr>
<tr>
<td class="clsName"><?php
echo translate_admin('Confirm Password');
?>
<span class="clsRed">*</span></td>
<td> <input id="confirm_password" type="text" size="55" name="confirm_password" value=""></td>
</tr>
<tr>
<td></td>
<td>
<div class="clearfix">
<span style="float:left; margin:0 10px 0 0;"><input class="clsSubmitBt1" type="submit" name="update" value="<?php
echo translate_admin('Update');
?>
" style="width:90px;" /></span>
<span style="float:left; padding:20px 0 0 0;"><div id="message"></div></span>
</div>
</td>
</tr>
</table>
<?php
echo form_close();
?>
</div>
</div>
开发者ID:notlec,项目名称:testRep,代码行数:31,代码来源:change_password.php
示例12: editAdmin_key
/**
* Loads Manage Admin Keys.
*
* @access private
* @param nil
* @return void
*/
public function editAdmin_key()
{
//Get id of the category
$id = is_numeric($this->uri->segment(4)) ? $this->uri->segment(4) : 0;
//Intialize values for library and helpers
$this->form_validation->set_error_delimiters($this->config->item('field_error_start_tag'), $this->config->item('field_error_end_tag'));
if ($this->input->post('editAdmin_key')) {
$check_data = $this->Common_model->getTableData('admin_key', array('id' => $id));
if ($check_data->num_rows() == 0) {
$this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('error', translate_admin('This admin key already deleted.')));
redirect_admin('admin_key/viewAdmin_key');
}
//Set rules
$this->form_validation->set_rules('Admin_key', 'Page_key', 'required|trim|xss_clean');
//$this->form_validation->set_rules('page_ref.','page_ref.','required|trim|xss_clean');
if ($this->form_validation->run()) {
//prepare update data
$updateData = array();
$updateData['page_key'] = $this->input->post('Admin_key');
$updateData['page_refer'] = $this->input->post('page_ref');
$updateData['status'] = $this->input->post('is_footer');
//Edit Faq Category
$updateKey = array('admin_key.id' => $this->uri->segment(4));
if ($this->Common_model->getTableData('admin_key', array('status' => 0))->num_rows() == 0 || $updateData['status'] == 1) {
$this->Admin_key_model->updateAdmin_key($updateKey, $updateData);
//Notification message
$this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('success', translate_admin('Admin key updated successfully')));
} else {
$this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('error', translate_admin('Sorry! Already another Admin Key in active state.')));
}
redirect_admin('admin_key/viewAdmin_key');
}
}
//If - Form Submission End
//Set Condition To Fetch The Faq Category
$condition = array('admin_key.id' => $id);
//Get Groups
$data['Admin_key'] = $this->Admin_key_model->getAdmin_keys($condition);
if ($data['Admin_key']->num_rows() == 0) {
$this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('error', translate_admin('This admin key already deleted.')));
redirect_admin('admin_key/viewAdmin_key');
}
//Load View
$data['message_element'] = "administrator/admin_key/editAdmin_key";
$this->load->view('administrator/admin_template', $data);
}
开发者ID:BersnardC,项目名称:DROPINN,代码行数:53,代码来源:admin_key.php
示例13: translate_admin
?>
</option>
<option value="Futon"><?php
echo translate_admin("Futon");
?>
</option>
<option value="Pull-out Sofa"><?php
echo translate_admin("Pull-out Sofa");
?>
</option>
<option value="Couch"><?php
echo translate_admin("Couch");
?>
</option>
<option value="Real Bed"><?php
echo translate_admin("Real Bed");
?>
</option>
</select>
</li>
</ul>
</div>
<div class="lightbox_filters_right_column">
<h3><?php
echo translate("Property Type");
?>
</h3>
<ul class="search_filter_content" id="lightbox_filter_content_property_type_id">
<?php
echo '<li class="clearfix">';
$property = $this->db->from('property_type')->get();
开发者ID:empotix,项目名称:travelo,代码行数:31,代码来源:view_search_result.php
示例14: translate_admin
<td><?php
echo translate_admin("Security Deposit");
?>
</td>
<td><input id="hosting_security_deposit_native" name="security" size="30" value="<?php
echo $price->security;
?>
"></td>
</tr>
<tr>
<td></td>
<td>
<div class="clearfix">
<span style="float:left; margin:0 10px 0 0;"><input class="clsSubmitBt1" type="submit" name="update_price" value="<?php
echo translate_admin("Update");
?>
" style="width:90px;" /></span>
<span style="float:left; padding:20px 0 0 0;"><div id="message4"></div></span>
</div>
</td>
</tr>
<input type="hidden" name="list_id" value="<?php
echo $result->id;
?>
">
</table>
</form>
</div>
开发者ID:notlec,项目名称:testRep,代码行数:30,代码来源:view_edit_list.php
示例15: translate_admin
<tr>
<td class="contentwidths"><?php
echo translate_admin("Additional Property type");
?>
<span style="color:#FF0000">*</span></td>
<td class="contentwidth"><input type="text" name="addproperty" value=""></td>
<td><?php
echo translate_admin("Add Additional Property Type");
?>
</td>
</tr>
<tr>
<td></td>
<td>
<span style="float:left; margin:0 10px 0 0;"><input class="clsSubmitBt1" type="submit" name="update_price" value="<?php
echo translate_admin("Add");
?>
" style="width:90px;" /></span>
</td>
</tr>
</table>
</form>
开发者ID:empotix,项目名称:travelo,代码行数:29,代码来源:view_add_property.php
示例16: base_url
<img src="<?php
echo base_url();
?>
images/edit_img.jpg"/>
</a>
</td>
<td>
<a href="javascript:void(0)" onclick="delete_record('<?php
echo $faq->id;
?>
')">
<img src="<?php
echo base_url();
?>
images/Delete.png"/>
</a>
</td>
</tr>
<?php
}
//Foreach End
} else {
echo '<tr><td colspan="6">' . translate_admin('No Faqs Found') . '</td></tr>';
}
?>
</table>
<input type="hidden" name="table_name" id="table_name" value="faq" />
</form>
</div>
开发者ID:BersnardC,项目名称:DROPINN,代码行数:31,代码来源:viewFaq.php
示例17: form_error
echo '<input type="checkbox" class="to" id="to" name="to[]" value="' . $row->email . '" >' . $row->email . '';
}
}
?>
<span> <?php
echo form_error('to');
?>
</span></td>
<td><input type="button" value="Check All" id="chck"><input type="button" value="Un Check All" id="unchck"></td>
</tr>
<tr>
<td class="clsName"><?php
echo translate_admin('Message');
?>
<span class="clsRed">*</span></td>
<td><textarea id="elm1" name="message" rows="15" cols="80" style="width: 80%"></textarea><span><?php
echo form_error('message');
?>
</span></td>
</tr>
<tr>
<td>
<input type="hidden" name="id" value=""/></td><td>
<input name="submit" type="submit" value="Submit"></td>
</tr>
开发者ID:BersnardC,项目名称:DROPINN,代码行数:30,代码来源:news_letter.php
示例18: admin_url
images/edit-new.png" alt="Edit" title="Edit" /></a>
<a href="<?php
echo admin_url('neighbourhoods/deletephotographer/' . $photographer->id);
?>
" onclick="return confirm('Are you sure want to delete??');"><img src="<?php
echo base_url();
?>
images/Delete.png" alt="Delete" title="Delete" /></a>
</td>
</tr>
<?php
}
//Foreach End
} else {
echo '<tr><td colspan="5">' . translate_admin('No Photographer Found') . '</td></tr>';
}
?>
</table>
<br />
<p style="text-align:left">
<?php
$data = array('name' => 'delete', 'class' => 'Blck_Butt', 'value' => translate_admin('Delete Photographer'));
echo form_submit($data);
?>
</p>
</form>
</div>
开发者ID:BersnardC,项目名称:DROPINN,代码行数:28,代码来源:viewphotographer.php
示例19: edit_language
/**
* Loads Manage Static Pages View.
*
* @access private
* @param nil
* @return void
*/
public function edit_language()
{
//Get id of the category
$id = is_numeric($this->uri->segment(4)) ? $this->uri->segment(4) : 0;
//Intialize values for library and helpers
$this->form_validation->set_error_delimiters($this->config->item('field_error_start_tag'), $this->config->item('field_error_end_tag'));
if ($this->input->post('edit_language')) {
extract($this->input->post());
//Set rules
$this->form_validation->set_rules('name', 'Language Name', 'required|trim|xss_clean|alpha|callback_edit_name_check');
$this->form_validation->set_rules('language_code', 'Language Code', 'required|trim|xss_clean|alpha|callback_edit_code_check');
$this->form_validation->set_rules('status', 'Status', 'required|trim|xss_clean');
if ($this->form_validation->run()) {
extract($this->input->post());
$data['name'] = $name;
$data['code'] = $language_code;
$data['status'] = $status;
$this->Common_model->updateTableData('language', 0, array('id' => $id), $data);
$this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('success', translate_admin('Language Updated Successfully.')));
redirect_admin('language/view_languages');
}
} elseif ($this->input->post('cancel')) {
redirect_admin('cancellation/viewCancellation');
}
$condition = array('id' => $id);
//Get Groups
$data['languages'] = $this->Common_model->getTableData('language', $condition);
$data['check_language'] = $this->Common_model->getTableData('language', array('id' => $this->uri->segment(4)))->num_rows();
if ($data['languages']->num_rows() == 0) {
$this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('error', translate_admin('This cancellation policy already deleted.')));
redirect_admin('cancellation/viewCancellation');
}
//Load View
$data['message_element'] = "administrator/language/edit_language";
$this->load->view('administrator/admin_template', $data);
}
开发者ID:BersnardC,项目名称:DROPINN,代码行数:43,代码来源:language.php
示例20: translate_admin
if (isset($google_analyze)) {
echo $google_analyze;
}
?>
"></td>
</tr>
<tr>
<td> </td>
<td><input type="submit"required="required" name="update" value="<?php
echo translate_admin('Submit');
?>
" /></td></tr>
</table>
<!--
<li class="how_to" ><a href="https://developers.google.com/api-client-library/javascript/start/start-js#Setup"><?php
echo translate_admin('How to Get the client ID');
?>
</a></li>-->
<div style="color:red; position: absolute;
margin-left: 703px; margin-top: -41px;" >
<?php
//echo form_error('google_analytics');
?>
</div>
</form>
<script type="text/javascript">
</script>
开发者ID:BersnardC,项目名称:DROPINN,代码行数:31,代码来源:google_analytics.php
注:本文中的translate_admin函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论