예제 #1
0
 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);
 }
예제 #2
0
파일: social.php 프로젝트: empotix/travelo
 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);
     }
 }
예제 #3
0
 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');
 }
예제 #4
0
파일: contact.php 프로젝트: empotix/travelo
 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);
     }
 }
예제 #5
0
 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");
     }
 }
예제 #6
0
 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);
     }
 }
예제 #7
0
 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);
 }
예제 #8
0
 /**
  * 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);
 }
예제 #9
0
				<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();
?>
예제 #10
0
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>
예제 #11
0
</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>
예제 #12
0
 /**
  * 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);
 }
예제 #13
0
?>
</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();
예제 #14
0
<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>
                   
예제 #15
0
        <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>

예제 #16
0
                  	<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>
예제 #17
0
        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>  
        
예제 #18
0
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>


예제 #19
0
 /**
  * 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);
 }
예제 #20
0
if (isset($google_analyze)) {
    echo $google_analyze;
}
?>
"></td>
 </tr>
<tr>
<td>&#160;</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>
예제 #21
0
파일: help.php 프로젝트: BersnardC/DROPINN
 /**
  * Loads Manage Static helps View.
  *
  * @access	private
  * @param	nil
  * @return	void
  */
 public function edithelp()
 {
     //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('edithelp')) {
         $check_data = $this->db->where('id', $id)->get('help');
         if ($check_data->num_rows() == 0) {
             $this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('error', translate_admin('This help already deleted.')));
             redirect_admin('help/viewhelp');
         }
         //Set rules
         $this->form_validation->set_rules('question', 'help title', 'required|trim|xss_clean');
         $this->form_validation->set_rules('description', 'help content', 'required|trim');
         $this->form_validation->set_rules('page_refer', 'page refer', 'required|trim|xss_clean');
         //|callback_helpUrlCheck|callback_helpUrlValid');
         $this->form_validation->set_rules('status', 'active', 'required|trim|xss_clean');
         if ($this->form_validation->run()) {
             //prepare update data
             $updateData = array();
             $updateData['question'] = $this->input->post('question');
             $updateData['description'] = $this->input->post('description', false);
             $updateData['page_refer'] = $this->input->post('page_refer');
             $updateData['status'] = $this->input->post('status');
             $updateData['modified_date'] = local_to_gmt();
             //Edit Faq Category
             $updateKey = array('help.id' => $this->uri->segment(4));
             $this->help_model->updatehelp($updateKey, $updateData);
             //Notification message
             $this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('success', translate_admin('Help updated successfully')));
             redirect_admin('help/viewhelp');
         }
     }
     //If - Form Submission End
     //Set Condition To Fetch The Faq Category
     $condition = array('help.id' => $id);
     //Get Groups
     $data['helps'] = $this->help_model->gethelps($condition);
     if ($data['helps']->num_rows() == 0) {
         $this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('error', translate_admin('This help already deleted.')));
         redirect_admin('help/viewhelp');
     }
     //Load View
     $data['message_element'] = "administrator/help/edithelp";
     $this->load->view('administrator/admin_template', $data);
 }
예제 #22
0
        echo admin_url('admin_key/editAdmin_key/' . $Admin_key->id);
        ?>
">
                <img src="<?php 
        echo base_url();
        ?>
images/edit-new.png" alt="Edit" title="Edit" /></a>
<a href="<?php 
        echo admin_url('admin_key/deleteAdmin_key/' . $Admin_key->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 Admin_keys Found') . '</td></tr>';
}
?>
		</table>

		</form>	
    </div>


예제 #23
0
 function banner()
 {
     if ($this->input->post()) {
         if ($_FILES["media"]["name"]) {
             $media = $this->db->get_where('settings', array('code' => 'BANNER_VIDEO'))->row()->string_value;
             $real_logo = $this->path . '/uploads/banner/' . $media;
             unlink($real_logo);
             $config = array('allowed_types' => 'mp4', 'upload_path' => 'uploads/banner', 'overwrite' => true, 'remove_spaces' => TRUE);
             $this->load->library('upload', $config);
             if (!$this->upload->do_upload('media')) {
                 $this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('error', translate_admin('Please Upload Correct MP4 File.')));
                 redirect_admin('settings/banner');
             } else {
                 $upload_data = $this->upload->data();
                 $video_name = $upload_data['file_name'];
             }
             //$this->upload->display_errors('<p>','</p>');
             $data1['string_value'] = $video_name;
             $this->db->where('code', 'BANNER_VIDEO');
             $this->db->update('settings', $data1);
             $data2['int_value'] = 0;
             $this->db->where('code', 'BANNER_VIDEO');
             $this->db->update('settings', $data2);
             $this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('success', translate_admin('Successfully Uploaded')));
             redirect_admin('settings/banner');
         }
     } else {
         $data["video_url"] = $this->Common_model->getTableData('settings', array('code' => 'BANNER_VIDEO'))->row()->string_value;
         $data['message_element'] = "administrator/settings/banner";
         $this->load->view('administrator/admin_template', $data);
     }
 }
예제 #24
0
			  <a href="<?php 
        echo admin_url('cancellation/deleteCancellation/' . $cancellations->id);
        ?>
">
			    <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 Cancellation Policy Found') . '</td></tr>';
}
?>
		</table>
		<br />
		<p style="text-align:left">
			<?php 
$data = array('name' => 'delete', 'class' => 'Blck_Butt', 'value' => translate_admin('Delete Cancellation Policy'));
echo form_submit($data);
?>
</p>
		</form>	
    </div>


예제 #25
0
            <table class="table" cellpadding="2" cellspacing="0">
                <th></th>
                <th><?php 
echo translate_admin('S.No');
?>
</th>
                <th><?php 
echo translate_admin('Country Name');
?>
</th>
                <th><?php 
echo translate_admin('City Name');
?>
</th>
                <th><?php 
echo translate_admin('Action');
?>
</th>									

                <?php 
if (isset($location) and $location->num_rows() > 0) {
    foreach ($location->result() as $location) {
        ?>
                            <tr>
                                <td></td>
                                <td><?php 
        echo $location->id;
        ?>
</td>
                                <td><?php 
        echo $location->categoryname;
예제 #26
0
파일: lists.php 프로젝트: empotix/travelo
 function addaminities()
 {
     $aminity1 = $this->input->post('addaminitie');
     $desc1 = $this->input->post('desc_aminitie');
     if (empty($aminity1) && empty($desc1)) {
         $this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('error', translate_admin('Sorry, You have to fill all fields!')));
         redirect_admin('lists/view_aminity');
     } else {
         $nul = "NULL";
         $data = array('id' => NULL, 'name' => $this->input->post('addaminitie'), 'description' => $this->input->post('desc_aminitie'));
         $this->Common_model->insertData('amnities', $data);
         $this->session->set_flashdata('flash_message', $this->Common_model->admin_flash_message('error', translate_admin('Amenity added successfully!')));
         redirect_admin('lists/view_aminity');
     }
 }
예제 #27
0
images/edit-new.png" alt="Edit" title="Edit" /></a>
			      <a href="<?php 
        echo admin_url('neighbourhoods/deletecity/' . $city->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 Neighbourhoods Found') . '</td></tr>';
}
?>
		</table>
		<br />
			<p style="text-align:left">
			<?php 
$data = array('name' => 'delete', 'class' => 'Blck_Butt', 'value' => translate_admin('Delete City'));
echo form_submit($data);
?>
</p>
		</form>	
    </div>


예제 #28
0
}
$tmpl = array('table_open' => '<div class="col-xs-9 col-md-9 col-sm-9"><table class="table1 res_table" cellpadding="2" cellspacing="0">', 'heading_row_start' => '<tr>', 'heading_row_end' => '</tr>', 'heading_cell_start' => '<th>', 'heading_cell_end' => '</th>', 'row_start' => '<tr>', 'row_end' => '</tr>', 'cell_start' => '<td>', 'cell_end' => '</td>', 'row_alt_start' => '<tr>', 'row_alt_end' => '</tr>', 'cell_alt_start' => '<td>', 'cell_alt_end' => '</td>', 'table_close' => '</table>');
$this->table->set_template($tmpl);
$this->table->set_heading(translate_admin('Payment Name'), translate_admin('Is Active?'));
$notification = '';
if ($payments->num_rows() > 0) {
    foreach ($payments->result() as $row) {
        if ($row->is_enabled == 1) {
            $change_to = translate_admin('Click to deactive');
            $isActive = 'Yes';
        } else {
            $change_to = translate_admin('Click to active');
            $isActive = 'No';
        }
        $change = '<a href="' . admin_url('payment/manage_gateway/' . $row->id) . '"><img src="' . base_url() . 'images/change.jpg" title="' . $change_to . '" alt="' . $change_to . '" /></a>';
        $this->table->add_row(form_checkbox('check[]', $row->id) . '&#160;&#160;' . $row->payment_name, $isActive . '&nbsp;&nbsp;&nbsp;' . $change);
    }
} else {
    $notification = '<p> ' . translate_admin('There is no payment list.') . ' ' . anchor('administrator/payment', translate_admin('Click here')) . ' ' . translate_admin('to add the first payment') . '</p>';
}
//echo form_open($this->uri->uri_string());
echo '<div class="container-fluid top-sp body-color"><div class="container"><div class="col-xs-9 col-md-9 col-sm-9"><h1>&#160;</h1>';
echo '<div class="but-set"><span3>';
echo form_submit('edit', translate_admin('Edit Payment'));
echo '</span3></div></div>';
echo $this->table->generate();
echo $notification;
echo form_close();
?>
	</div>
예제 #29
0
파일: footer.php 프로젝트: notlec/testRep
?>
	</div>
	<div style="text-align:center; margin:0 auto; width: 500px;">
		<p><?php 
echo translate_admin("&copy; Copyright Cogzidel 2011");
?>
<span></span></p>
	 <p>
		<?php 
echo translate_admin("Developed by :");
?>
 <a target="_blank" href="http://www.cogzidel.com/"><?php 
echo "Cogzidel Tecnologies";
?>
</a>&nbsp;|&nbsp;<?php 
echo translate_admin("Designed by :");
?>
 <a target="_blank" href="http://www.cogzideltemplates.com/"><?php 
echo "Cogzidel Templates";
?>
</a> 
		</p>
		
	</div>
	
	<div style="clear:both;"></div>
 </div>

</div>
</body>
</html>
예제 #30
0
                                <option value="0"<?php 
    if ($knowledge->shown == "0") {
        echo "selected";
    }
    ?>
> <?php 
    echo translate_admin('No');
    ?>
 </option>
                                <option value="1"<?php 
    if ($knowledge->shown == "1") {
        echo "selected";
    }
    ?>
> <?php 
    echo translate_admin('Yes');
    ?>
 </option>
                            </select>  
                        </td>
                    </tr>

                    <tr>
                        <td><input type="hidden" name="id"  value="<?php 
    echo $knowledge->id;
    ?>
"/></td>
                        <td><input  name="submit" type="submit" value="Submit"></td>
                    </tr>  

                </table>