Example #1
0
 function edit($id)
 {
     $data['page_action'] = 'Edit';
     $id = $id;
     $data['id'] = $id;
     if (affilateright("banner", "write") == true) {
         $homeicon = htmlentities('<i class="fa fa-home fa-lg"></i>');
         $this->breadcrumbs->push($homeicon, '/admin/dashboard');
         $this->breadcrumbs->push('Dashboard', "/admin/dashboard");
         $this->breadcrumbs->push('Modify/Listing Banners', "/admin/banner");
         $this->breadcrumbs->push('<a href="#ignore">Edit  </a>', "&nbsp;");
         $breadcrumds = $this->breadcrumbs->show();
         $data['breadcrumds'] = $breadcrumds;
         $data['sitetitle'] = 'Modify/Listing Banners';
         $data['page_titles'] = 'Modify/Listing Banners';
         $data['page_action'] = 'Modify/Listing Banners  ';
         if ($this->input->post() == '') {
             $RsData = $this->banners->GetBannerById($id);
             if (count($RsData) > 0) {
                 $data['results'] = $RsData[0];
             }
             $this->openView($data, 'add');
         } else {
             $data = $_POST;
             $ret = $this->banners->addeditBanner($data, $id);
             if ($ret > 0) {
                 $this->session->set_flashdata('sucess', 'Banner Edited Successfully');
                 redirect('admin/banner');
             } else {
                 $data['results'] = $_POST;
                 $this->session->set_flashdata('sucess', 'Enter Unique Banner title');
                 $this->openView($data, 'add');
             }
         }
     } else {
         $this->session->set_flashdata('rightmsg', 'You have not write right to access');
         redirect('admin/dashboard');
     }
 }
Example #2
0
        }
        ?>
  	
										 	
										
										  </tr>
									<?php 
    }
}
?>
                    </tbody>
                  </table>
			      <div class="clearfix">&nbsp;</div>   
                     <div class="panel-footer text-right">
                       <?php 
if (affilateright("about", "write") == true) {
    ?>
                          <input type="submit"  class="btn btn-warning" value="UnPublish" name="btn_UnPublish">
                          <input type="submit"  class="btn btn-primary" value="Publish" name="btn_Publish">
		                  <input type="submit"  value="Delete" id="deleteall" onclick="document.frmListing.status.value='-1';" class="btn btn-danger" name="btn_delete">
                    <?php 
}
?>
 
                     </div>	
                </div>
			  	<?php 
echo form_close();
?>
                  
              </div>
<?php

$write = affilateright("suggestion", "write");
$read = affilateright("suggestion", "read");
?>
<div class="container">
          <div class="row">
            <div class="col-md-12">
              <h3 class="page-title"><?php 
echo $page_title;
?>
</h3>
              <!--<ul class="breadcrumb breadcrumb-arrows breadcrumb-default">
                <li><a href="<?php 
echo SITE_ADMIN_URL;
?>
"><i class="fa fa-home fa-lg"></i></a></li>
                <li><a href="#ignore">Country(s) Listing  </a></li>
               </ul> -->
               
                <?php 
echo $breadcrumds;
?>
            </div>
          </div>
        </div>
		
 <div class="container">
           <?php 
if ($this->session->flashdata('error')) {
    ?>
Example #4
0
<?php

$write = affilateright("ads", "write");
$read = affilateright("ads", "read");
?>
<div class="container">
          <div class="row">
            <div class="col-md-12">
              <h3 class="page-title"><?php 
echo $page_title;
?>
</h3>
              <!--<ul class="breadcrumb breadcrumb-arrows breadcrumb-default">
                <li><a href="<?php 
echo SITE_ADMIN_URL;
?>
"><i class="fa fa-home fa-lg"></i></a></li>
                <li><a href="#ignore">Country(s) Listing  </a></li>
               </ul> -->
               
                <?php 
echo $breadcrumds;
?>
            </div>
          </div>
        </div>
		
 <div class="container">
           <?php 
if ($this->session->flashdata('error')) {
    ?>
Example #5
0
 function edit($id = 0)
 {
     //*******************************  Validation  ********************
     $config = array(array('field' => 'username', 'label' => "Username ", 'rules' => 'required|callback_editname_check'), array('field' => 'userpass', 'label' => "Password ", 'rules' => 'required'), array('field' => 'email', 'label' => "Email", 'rules' => 'required|callback_editemail_check'), array('field' => 'siteemail', 'label' => "Site Email", 'rules' => 'required'), array('field' => 'siteemailpass', 'label' => "Site Password", 'rules' => 'required'));
     if (affilateright("affilate", "write") == true) {
         $this->form_validation->set_rules($config);
         if ($this->form_validation->run() == TRUE) {
             // echo "<pre>";
             // print_r($this->input->post());
             // print_r($_FILES);
             $data["username"] = $this->input->post("username");
             $data["userpass"] = $this->input->post("userpass");
             $data["email"] = $this->input->post("email");
             $data["siteemail"] = $this->input->post("siteemail");
             $data["siteemailpass"] = $this->input->post("siteemailpass");
             $data["type"] = $this->input->post("type");
             $data["id"] = $this->input->post("id");
             $data["affilaterights"] = $this->input->post("affilaterights");
             $this->affiliate_model->update($data);
             $this->session->set_flashdata('sucess', "affiliate have been updated sucessfully");
             redirect('admin/affiliate');
         }
         //*****************************  Validation **************************************
         // add breadcrumbs
         //$this->breadcrumbs->push('Home', '/admin/dashboard');
         $datas['sitetitle'] = 'Modify/Listing Affiliate >Add ';
         $homeicon = htmlentities('<i class="fa fa-home fa-lg"></i>');
         $this->breadcrumbs->push($homeicon, '/admin/dashboard');
         $this->breadcrumbs->push('Dashboard', "/admin/dashboard");
         $this->breadcrumbs->push('Modify/Listing Affiliate ', "/admin/affiliate");
         $this->breadcrumbs->push('<a href="#ignore">Edit</a>', "/admin/affiliate/edit");
         $breadcrumds = $this->breadcrumbs->show();
         //   admin_lists
         $datas['id'] = $id;
         $datas['page_action'] = 'Edit';
         $datas['title'] = 'Modify/Listing Affiliate';
         $data['sitetitle'] = 'Modify/Listing Affiliate > Edit';
         $datas['page_title'] = 'Modify/Listing Affiliate';
         $datas['breadcrumds'] = $breadcrumds;
         $editdata = $this->affiliate_model->GetaffiliateById($id);
         if ($this->input->post("type")) {
             $datas['type'] = $this->input->post("type");
         } elseif (!empty($editdata)) {
             $datas['type'] = $editdata[0]["superadmin"];
         } else {
             $datas['type'] = "";
         }
         if ($this->input->post("username")) {
             $datas['username'] = $this->input->post("username");
         } elseif (!empty($editdata)) {
             $datas['username'] = $editdata[0]["username"];
         } else {
             $datas['username'] = "";
         }
         if ($this->input->post("userpass")) {
             $datas['userpass'] = $this->input->post("userpass");
         } elseif (!empty($editdata)) {
             $datas['userpass'] = "";
             //$editdata[0]["password"];
         } else {
             $datas['userpass'] = "";
         }
         if ($this->input->post("email")) {
             $datas['email'] = $this->input->post("email");
         } elseif (!empty($editdata)) {
             $datas['email'] = $editdata[0]["email"];
         } else {
             $datas['email'] = "";
         }
         if ($this->input->post("siteemail")) {
             $datas['siteemail'] = $this->input->post("siteemail");
         } elseif (!empty($editdata)) {
             $datas['siteemail'] = explode(",", $editdata[0]["semail"]);
         } else {
             $datas['siteemail'] = "";
         }
         if ($this->input->post("siteemailpass")) {
             $datas['siteemailpass'] = $this->input->post("siteemailpass");
         } elseif (!empty($editdata)) {
             $datas['siteemailpass'] = explode("-|-", $editdata[0]["spassword"]);
             //$editdata[0]["spassword"];
         } else {
             $datas['siteemailpass'] = "";
         }
         $datas['resultsmodules'] = $this->affilateright_model->GetAllmodules();
         $datas['resultsaffilate'] = $this->affilateright_model->Getaffilatemodules($id);
         $datas['results'] = array();
         $this->openView($datas, 'add');
     } else {
         $this->session->set_flashdata('rightmsg', 'You have not write right to access');
         redirect('admin/dashboard');
     }
 }
Example #6
0
 function edit($id = 0)
 {
     $images_error = array();
     $region_map_img_name = "";
     $region_flag_img_name = "";
     $region_image_img_name = "";
     $region_coverimage_img_name = "";
     //*******************************  Validation  ********************
     if ($id != 7) {
         $config = array(array('field' => 'regions[]', 'label' => "Regions ", 'rules' => 'required'), array('field' => 'type', 'label' => "Ad Size ", 'rules' => 'required'), array('field' => 'title', 'label' => "Ads Title", 'rules' => 'required|callback_edittitle_check'));
         $checkvalidation = TRUE;
     } else {
         $config = array();
         $checkvalidation = FALSE;
     }
     if (affilateright("ads", "write") == true) {
         $this->form_validation->set_rules($config);
         if ($this->form_validation->run() == $checkvalidation && !empty($_POST)) {
             // echo "<pre>";
             // print_r($this->input->post());
             // print_r($_FILES);
             $data["regions"] = $this->input->post("regions");
             $data["title"] = $this->input->post("title");
             $data["type"] = $this->input->post("type");
             $data["video_name"] = $this->input->post("video_name");
             $data["id"] = $this->input->post("id");
             $adsid = $data["id"];
             //*******************************************************************
             if (!empty($_FILES["image"]['name'])) {
                 $gettmp_tumbs_arr = array();
                 $imagecounter = 1;
                 $ext = explode(".", $_FILES["image"]['name']);
                 $ext = end($ext);
                 $uploadConst['upload_path'] = SITE_UPLOADPATH;
                 $uploadConst['allowed_types'] = 'gif|jpg|png|bmp|mp4|bat|flv';
                 //$uploadConst['max_size'] = REGION_MAP;
                 $uploadConst['overwrite'] = TRUE;
                 $uploadConst['file_name'] = 'ads-' . $adsid . "." . $ext;
                 $this->upload->initialize($uploadConst);
                 if (!$this->upload->do_upload('image')) {
                     $remap_error = $this->upload->display_errors();
                     $images_error["ads_error"] = $remap_error;
                 } else {
                     $config = array();
                     $image_data = array();
                     $image_data = $this->upload->data();
                     $region_image_img_name = $image_data["orig_name"];
                     // $region_ext_img_name= $image_data["file_ext"];
                     if ($adsid == 7) {
                         $gettmp_tumbs_arr[$adsid] = $image_data['full_path'];
                         // echo "<pre>";
                         // print_r($gettmp_tumbs_arr);
                         //********************************* Resize ****************************
                         foreach ($gettmp_tumbs_arr as $key => $imageurl) {
                             unset($config);
                             $config = array('image_library' => 'gd2', 'source_image' => $imageurl, 'new_image' => SITE_UPLOADPATH, 'maintain_ratio' => false, 'overwrite' => TRUE, 'file_name' => 'ads-' . $key . "." . $ext, 'width' => 1500, 'height' => 450);
                             $this->image_lib->initialize($config);
                             // $this->image_lib->resize();
                             if (!$this->image_lib->resize()) {
                                 $this->image_lib->display_errors();
                             }
                             unset($config);
                             $this->image_lib->clear();
                         }
                         //*************************************************************************
                     } else {
                         // gif|jpg|png|bmp
                         $checkimg = array("gif", "jpeg", "jpg", "png", "bmp");
                         if (in_array($ext, $checkimg)) {
                             $gettmp_tumbs_arr[$peopleprofileid] = $image_data['full_path'];
                             //********************************* Resize ****************************
                             foreach ($gettmp_tumbs_arr as $key => $imageurl) {
                                 unset($config);
                                 $config = array('image_library' => 'gd2', 'source_image' => $imageurl, 'new_image' => SITE_UPLOADPATH, 'maintain_ratio' => false, 'overwrite' => TRUE, 'file_name' => 'ads-' . $key . "." . $ext, 'width' => 800, 'height' => 520);
                                 $this->image_lib->initialize($config);
                                 // $this->image_lib->resize();
                                 if (!$this->image_lib->resize()) {
                                     $this->image_lib->display_errors();
                                 }
                                 unset($config);
                                 $this->image_lib->clear();
                                 /*************************************/
                                 unset($config);
                                 $config = array('image_library' => 'gd2', 'source_image' => $imageurl, 'new_image' => SITE_UPLOADPATH . 'thumbs/', 'maintain_ratio' => false, 'overwrite' => TRUE, 'file_name' => 'ads-' . $key . "." . $ext, 'width' => 200, 'height' => 150);
                                 $this->image_lib->initialize($config);
                                 // $this->image_lib->resize();
                                 if (!$this->image_lib->resize()) {
                                     $this->image_lib->display_errors();
                                 }
                                 unset($config);
                                 $this->image_lib->clear();
                             }
                             //*************************************************************************
                         }
                     }
                 }
             }
             //********************************************************************
             if (empty($images_error)) {
                 $data["ads_image"] = $region_image_img_name;
                 // $data["ads_imageext"]= $region_ext_img_name;
                 $this->ads_model->update($data);
                 $this->session->set_flashdata('sucess', "Ads have been updated sucessfully");
                 redirect('admin/ads');
             }
         }
         //*****************************  Validation **************************************
         // add breadcrumbs
         //$this->breadcrumbs->push('Home', '/admin/dashboard');
         $datas['sitetitle'] = 'Modify/Listing Ads >Add ';
         $homeicon = htmlentities('<i class="fa fa-home fa-lg"></i>');
         $this->breadcrumbs->push($homeicon, '/admin/dashboard');
         $this->breadcrumbs->push('Dashboard', "/admin/dashboard");
         $this->breadcrumbs->push('Modify/Listing Ads ', "/admin/ads");
         $this->breadcrumbs->push('<a href="#ignore">Edit</a>', "/admin/ads/edit");
         $breadcrumds = $this->breadcrumbs->show();
         //   admin_lists
         $datas['id'] = $id;
         $datas['page_action'] = 'Edit';
         $datas['title'] = 'Modify/Listing Ads';
         $data['sitetitle'] = 'Modify/Listing Ads > Edit';
         $datas['page_title'] = 'Modify/Listing Ads';
         $datas['breadcrumds'] = $breadcrumds;
         $datas['images_error'] = $images_error;
         $editdata = $this->ads_model->GetadsById($id);
         $regions_arr = $this->ads_model->GetAllRegion();
         $datas['regions_arr'] = $regions_arr;
         if ($this->input->post("title")) {
             $datas['title'] = $this->input->post("title");
         } elseif (!empty($editdata)) {
             $datas['title'] = $editdata[0]["title"];
         } else {
             $datas['title'] = "";
         }
         if ($this->input->post("regions")) {
             $datas['regions'] = $this->input->post("regions");
         } elseif (!empty($editdata)) {
             $data_tmp = explode(",", $editdata[0]["regions"]);
             foreach ($data_tmp as $key => $getid) {
                 $tmp_regions[$getid] = $getid;
             }
             if (!empty($tmp_regions)) {
                 $datas['regions'] = $tmp_regions;
             } else {
                 $datas['regions'] = "";
             }
         } else {
             $datas['regions'] = "";
         }
         if ($this->input->post("type")) {
             $datas['type'] = $this->input->post("type");
         } elseif (!empty($editdata)) {
             $datas['type'] = $editdata[0]["type"];
         } else {
             $datas['type'] = "";
         }
         if (!empty($editdata)) {
             $datas['image'] = $editdata[0]["image"];
         } else {
             $datas['image'] = "";
         }
         $datas['ext'] = $editdata[0]["filetype"];
         $datas['results'] = array();
         $this->openView($datas, 'add');
     } else {
         $this->session->set_flashdata('rightmsg', 'You have not write right to access');
         redirect('admin/dashboard');
     }
 }
Example #7
0
<?php

$write = affilateright("message", "write");
$read = affilateright("message", "read");
?>
<div class="container">
          <div class="row">
            <div class="col-md-12">
              <h3 class="page-title"><?php 
echo $page_title;
?>
</h3>
              <!--<ul class="breadcrumb breadcrumb-arrows breadcrumb-default">
                <li><a href="<?php 
echo SITE_ADMIN_URL;
?>
"><i class="fa fa-home fa-lg"></i></a></li>
                <li><a href="#ignore">Country(s) Listing  </a></li>
               </ul> -->
               
                <?php 
echo $breadcrumds;
?>
            </div>
          </div>
        </div>
		
 <div class="container">
           <?php 
if ($this->session->flashdata('error')) {
    ?>
Example #8
0
 function edit($id = 0)
 {
     $images_error = array();
     $region_map_img_name = "";
     $region_flag_img_name = "";
     $region_image_img_name = "";
     $region_coverimage_img_name = "";
     //*******************************  Validation  ********************
     $config = array(array('field' => 'name', 'label' => "Country name", 'rules' => 'required|callback_editname_check'), array('field' => 'title', 'label' => "Country title", 'rules' => 'required|callback_edittitle_check'));
     if (affilateright("regions", "write") == true) {
         $this->form_validation->set_rules($config);
         if ($this->form_validation->run() == TRUE) {
             // echo "<pre>";
             // print_r($this->input->post());
             // print_r($_FILES);
             $motto = addslashes($this->input->post("motto"));
             $anthem = addslashes($this->input->post("anthem"));
             $national_dish = addslashes($this->input->post("national_dish"));
             $flag_desc_arr = array("motto" => $motto, "anthem" => $anthem, "national_dish" => $national_dish);
             $flag_desc = json_encode($flag_desc_arr, JSON_FORCE_OBJECT);
             $capital = addslashes($this->input->post("capital"));
             $language = addslashes($this->input->post("language"));
             $population = addslashes($this->input->post("population"));
             $shortdesc = addslashes($this->input->post("shortdesc"));
             $population_arr = array("capital" => $capital, "language" => $language, "population" => $population, "flag_shortdesc" => $shortdesc);
             $population = json_encode($population_arr, JSON_FORCE_OBJECT);
             $data["id"] = $this->input->post("id");
             $data["name"] = $this->input->post("name");
             $data["banner"] = $this->input->post("banner");
             $data["title"] = $this->input->post("title");
             $data["independenceday"] = $this->input->post("year") . "-" . $this->input->post("month") . "-" . $this->input->post("day");
             $data["description"] = addslashes($this->input->post("content"));
             $data["flag_desc"] = $flag_desc;
             $data["population"] = $population;
             $data["longitude"] = addslashes($this->input->post("longitude"));
             $data["latitude"] = addslashes($this->input->post("latitude"));
             $data["status"] = $this->input->post("status");
             $data["twittershortdesc"] = $this->input->post("twittershortdesc");
             $regionid = $data["id"];
             //*******************************************************************
             if (!empty($_FILES["ragion_map"]['name'])) {
                 $gettmp_tumbs_arr = array();
                 $imagecounter = 1;
                 $ext = explode(".", $_FILES["ragion_map"]['name']);
                 $ext = end($ext);
                 $uploadConst['upload_path'] = SITE_UPLOADPATH;
                 $uploadConst['allowed_types'] = 'gif|jpg|png|bmp';
                 $uploadConst['max_size'] = REGION_MAP;
                 $uploadConst['overwrite'] = TRUE;
                 $uploadConst['file_name'] = 'regionimap-' . $regionid . "." . $ext;
                 $this->upload->initialize($uploadConst);
                 if (!$this->upload->do_upload('ragion_map')) {
                     $remap_error = $this->upload->display_errors();
                     $images_error["remap_error"] = $remap_error;
                 } else {
                     $config = array();
                     $image_data = array();
                     $image_data = $this->upload->data();
                     $region_map_img_name = $image_data["orig_name"];
                 }
             }
             //********************************************************************
             //*******************************************************************
             if (!empty($_FILES["flag"]['name'])) {
                 $gettmp_tumbs_arr = array();
                 $imagecounter = 1;
                 $ext = explode(".", $_FILES["flag"]['name']);
                 $ext = end($ext);
                 $uploadConst['upload_path'] = SITE_UPLOADPATH;
                 $uploadConst['allowed_types'] = 'gif|jpg|png|bmp';
                 $uploadConst['max_size'] = REGION_FLAG;
                 $uploadConst['overwrite'] = TRUE;
                 $uploadConst['file_name'] = 'regionflag-' . $regionid . "." . $ext;
                 $this->upload->initialize($uploadConst);
                 if (!$this->upload->do_upload('flag')) {
                     $remap_error = $this->upload->display_errors();
                     $images_error["flag_error"] = $remap_error;
                 } else {
                     $config = array();
                     $image_data = array();
                     $image_data = $this->upload->data();
                     $region_flag_img_name = $image_data["orig_name"];
                     $gettmp_tumbs_arr = array();
                     $gettmp_tumbs_arr[$regionid] = $image_data['full_path'];
                     //********************************* Resize ****************************
                     foreach ($gettmp_tumbs_arr as $key => $imageurl) {
                         unset($config);
                         $config = array('image_library' => 'gd2', 'source_image' => $imageurl, 'new_image' => SITE_UPLOADPATH, 'maintain_ratio' => false, 'overwrite' => TRUE, 'file_name' => 'regionflag-' . $key . "." . $ext, 'width' => 300, 'height' => 180);
                         $this->image_lib->initialize($config);
                         // $this->image_lib->resize();
                         if (!$this->image_lib->resize()) {
                             $this->image_lib->display_errors();
                         }
                         unset($config);
                         $this->image_lib->clear();
                         /*************************************/
                     }
                 }
             }
             //********************************************************************
             //*******************************************************************
             if (!empty($_FILES["image"]['name'])) {
                 $gettmp_tumbs_arr = array();
                 $imagecounter = 1;
                 $ext = explode(".", $_FILES["image"]['name']);
                 $ext = end($ext);
                 $uploadConst['upload_path'] = SITE_UPLOADPATH;
                 $uploadConst['allowed_types'] = 'gif|jpg|png|bmp';
                 $uploadConst['max_size'] = REGION_IMAGE;
                 $uploadConst['overwrite'] = TRUE;
                 $uploadConst['file_name'] = 'regionimage-' . $regionid . "." . $ext;
                 $this->upload->initialize($uploadConst);
                 if (!$this->upload->do_upload('image')) {
                     $remap_error = $this->upload->display_errors();
                     $images_error["image_error"] = $remap_error;
                 } else {
                     $config = array();
                     $image_data = array();
                     $image_data = $this->upload->data();
                     $region_image_img_name = $image_data["orig_name"];
                     $gettmp_tumbs_arr = array();
                     $gettmp_tumbs_arr[$regionid] = $image_data['full_path'];
                     //********************************* Resize ****************************
                     foreach ($gettmp_tumbs_arr as $key => $imageurl) {
                         unset($config);
                         $config = array('image_library' => 'gd2', 'source_image' => $imageurl, 'new_image' => SITE_UPLOADPATH, 'maintain_ratio' => false, 'overwrite' => TRUE, 'file_name' => 'regionimage-' . $key . "." . $ext, 'width' => 490, 'height' => 300);
                         $this->image_lib->initialize($config);
                         // $this->image_lib->resize();
                         if (!$this->image_lib->resize()) {
                             $this->image_lib->display_errors();
                         }
                         unset($config);
                         $this->image_lib->clear();
                         /*************************************/
                     }
                 }
             }
             //********************************************************************
             //*******************************************************************
             if (!empty($_FILES["cover_image"]['name'])) {
                 $gettmp_tumbs_arr = array();
                 $imagecounter = 1;
                 $ext = explode(".", $_FILES["cover_image"]['name']);
                 $ext = end($ext);
                 $uploadConst['upload_path'] = SITE_UPLOADPATH;
                 $uploadConst['allowed_types'] = 'gif|jpg|png|bmp';
                 $uploadConst['max_size'] = REGION_COVERIMAGE;
                 $uploadConst['overwrite'] = TRUE;
                 $uploadConst['file_name'] = 'regioncoverimage-' . $regionid . "." . $ext;
                 $this->upload->initialize($uploadConst);
                 if (!$this->upload->do_upload('cover_image')) {
                     $remap_error = $this->upload->display_errors();
                     $images_error["coverimage_error"] = $remap_error;
                 } else {
                     $config = array();
                     $image_data = array();
                     $image_data = $this->upload->data();
                     $region_coverimage_img_name = $image_data["orig_name"];
                     $gettmp_tumbs_arr = array();
                     $gettmp_tumbs_arr[$regionid] = $image_data['full_path'];
                     //********************************* Resize ****************************
                     foreach ($gettmp_tumbs_arr as $key => $imageurl) {
                         unset($config);
                         $config = array('image_library' => 'gd2', 'source_image' => $imageurl, 'new_image' => SITE_UPLOADPATH, 'maintain_ratio' => false, 'overwrite' => TRUE, 'file_name' => 'regioncoverimage-' . $key . "." . $ext, 'width' => 200, 'height' => 200);
                         $this->image_lib->initialize($config);
                         // $this->image_lib->resize();
                         if (!$this->image_lib->resize()) {
                             $this->image_lib->display_errors();
                         }
                         unset($config);
                         $this->image_lib->clear();
                         /*************************************/
                     }
                 }
             }
             //********************************************************************
             if (empty($images_error)) {
                 $data["ragion_map"] = $region_map_img_name;
                 $data["ragion_flag"] = $region_flag_img_name;
                 $data["ragion_image"] = $region_image_img_name;
                 $data["ragion_coverimage"] = $region_coverimage_img_name;
                 $this->region_model->update($data);
                 $this->session->set_flashdata('sucess', "Country have been updated sucessfully");
                 redirect('admin/regions');
             }
         }
         //*****************************  Validation **************************************
         // add breadcrumbs
         // $this->breadcrumbs->push('Home', '/admin/dashboard');
         $this->breadcrumbs->push('<i class="fa fa-home fa-lg"></i>', '/admin/dashboard');
         $this->breadcrumbs->push('Country List', "/admin/regions");
         $this->breadcrumbs->push('<a href="#ignore">Edit</a>', "/admin/regions/edit");
         $breadcrumds = $this->breadcrumbs->show();
         $datas['sitetitle'] = 'Country(s) ';
         $datas['page_title'] = 'Country(s) List';
         $datas['page_action'] = 'Country(s)';
         //   admin_lists
         $datas['id'] = $id;
         $datas['page_action'] = 'Edit';
         $datas['title'] = 'Country(s)';
         $datas['page_title'] = 'Country(s)';
         $datas['breadcrumds'] = $breadcrumds;
         $datas['images_error'] = $images_error;
         $editdata = $this->region_model->GetRegionById($id);
         $flag_desc = json_decode($editdata[0]["flag_desc"]);
         $population = json_decode($editdata[0]["population"]);
         list($year, $month, $day) = explode("-", $editdata[0]["independenceday"]);
         if ($this->input->post("name")) {
             $datas['name'] = $this->input->post("name");
         } elseif (!empty($editdata)) {
             $datas['name'] = $editdata[0]["region_name"];
         } else {
             $datas['name'] = "";
         }
         /*for banner */
         if ($this->input->post("banner")) {
             $datas['banner'] = $this->input->post("banner");
         } elseif (!empty($editdata)) {
             $datas['banner'] = $editdata[0]["region_titlebanner"];
         } else {
             $datas['banner'] = "";
         }
         /* close ing for banner */
         if ($this->input->post("twittershortdesc")) {
             $datas['twittershortdesc'] = $this->input->post("twittershortdesc");
         } elseif (!empty($editdata)) {
             $datas['twittershortdesc'] = $editdata[0]["twittershortdesc"];
         } else {
             $datas['twittershortdesc'] = "";
         }
         if ($this->input->post("title")) {
             $datas['title'] = $this->input->post("title");
         } elseif (!empty($editdata)) {
             $datas['title'] = $editdata[0]["region_title"];
         } else {
             $datas['title'] = "";
         }
         if ($this->input->post("motto")) {
             $datas['motto'] = $this->input->post("motto");
         } elseif (!empty($editdata)) {
             $datas['motto'] = $flag_desc->motto;
         } else {
             $datas['motto'] = "";
         }
         if ($this->input->post("anthem")) {
             $datas['anthem'] = $this->input->post("anthem");
         } elseif (!empty($editdata)) {
             $datas['anthem'] = $flag_desc->anthem;
         } else {
             $datas['anthem'] = "";
         }
         if ($this->input->post("national_dish")) {
             $datas['national_dish'] = $this->input->post("national_dish");
         } elseif (!empty($editdata)) {
             $datas['national_dish'] = $flag_desc->national_dish;
         } else {
             $datas['national_dish'] = "";
         }
         if ($this->input->post("capital")) {
             $datas['capital'] = $this->input->post("capital");
         } elseif (!empty($editdata) && !empty($population)) {
             $datas['capital'] = $population->capital;
         } else {
             $datas['capital'] = "";
         }
         if ($this->input->post("language")) {
             $datas['language'] = $this->input->post("language");
         } elseif (!empty($editdata) && !empty($population)) {
             $datas['language'] = $population->language;
         } else {
             $datas['language'] = "";
         }
         if ($this->input->post("population")) {
             $datas['population'] = $this->input->post("population");
         } elseif (!empty($editdata) && !empty($population)) {
             $datas['population'] = $population->population;
         } else {
             $datas['population'] = "";
         }
         if ($this->input->post("shortdesc")) {
             $datas['shortdesc'] = $this->input->post("shortdesc");
         } elseif (!empty($editdata) && !empty($population)) {
             $datas['shortdesc'] = $population->flag_shortdesc;
         } else {
             $datas['shortdesc'] = "";
         }
         if ($this->input->post("year")) {
             $datas['year'] = $this->input->post("year");
         } elseif (!empty($editdata)) {
             $datas['year'] = $year;
         } else {
             $datas['year'] = "";
         }
         if ($this->input->post("month")) {
             $datas['month'] = $this->input->post("month");
         } elseif (!empty($editdata)) {
             $datas['month'] = $month;
         } else {
             $datas['month'] = "";
         }
         if ($this->input->post("day")) {
             $datas['day'] = $this->input->post("day");
         } elseif (!empty($editdata)) {
             $datas['day'] = $day;
         } else {
             $datas['day'] = "";
         }
         if ($this->input->post("content")) {
             $datas['content'] = $this->input->post("content");
         } elseif (!empty($editdata)) {
             $datas['content'] = $editdata[0]["description"];
         } else {
             $datas['content'] = "";
         }
         if ($this->input->post("longitude")) {
             $datas['longitude'] = $this->input->post("longitude");
         } elseif (!empty($editdata)) {
             $datas['longitude'] = $editdata[0]["longitude"];
         } else {
             $datas['longitude'] = "";
         }
         if ($this->input->post("status")) {
             $datas['status'] = $this->input->post("status");
         } elseif (!empty($editdata)) {
             $datas['status'] = $editdata[0]["status"];
         } else {
             $datas['status'] = "1";
         }
         if ($this->input->post("latitude")) {
             $datas['latitude'] = $this->input->post("latitude");
         } elseif (!empty($editdata)) {
             $datas['latitude'] = $editdata[0]["latitude"];
         } else {
             $datas['latitude'] = "";
         }
         if (!empty($editdata)) {
             $datas['coverimage'] = $editdata[0]["cover_image"];
         } else {
             $datas['coverimage'] = "";
         }
         if (!empty($editdata)) {
             $datas['flag'] = $editdata[0]["flag"];
         } else {
             $datas['flag'] = "";
         }
         if (!empty($editdata)) {
             $datas['image'] = $editdata[0]["image"];
         } else {
             $datas['image'] = "";
         }
         if (!empty($editdata)) {
             $datas['ragion_map'] = $editdata[0]["ragion_map"];
         } else {
             $datas['ragion_map'] = "";
         }
         $datas['results'] = array();
         $this->openView($datas, 'add');
     } else {
         $this->session->set_flashdata('rightmsg', 'You have not write right to access');
         redirect('admin/dashboard');
     }
 }
<?php

$write = affilateright("dashboard", "write");
$read = affilateright("dashboard", "read");
$login_user_sadmin = $this->session->userdata('sadmin');
?>
<style>
.abday.fc-event {
  color: #246887;
}
.fc-event-time, .fc-event-title {
  padding: 0 1px;
}
.fc-event {
  font-size: 0.85em;
}
.fc-ltr .fc-event-hori.fc-event-end, .fc-rtl .fc-event-hori.fc-event-start {
  border-bottom-right-radius: 3px;
  border-right-width: 1px;
  border-top-right-radius: 3px;
}
.fc-ltr .fc-event-hori.fc-event-start, .fc-rtl .fc-event-hori.fc-event-end {
  border-bottom-left-radius: 3px;
  border-left-width: 1px;
  border-top-left-radius: 3px;
}
.fc-event {
  background-color: #f19718 !important;
  border-color: #f89406 !important;
}
.inday.fc-event {
<?php

$write = affilateright("mliststats", "write");
$read = affilateright("mliststats", "read");
?>
<style>
  .new_col6 > div:nth-child(2n+1) {
  clear: both;
}
.span2{
    cursor: move;
}
  </style>
 <?php 
$usermasterliststats = dragdropmenu('masterliststats');
$rside_dashboard = array();
//echo "<pre>";print_r($userdashboardmenus);exit;
?>
    
<div class="container">
          <div class="row">
            <div class="col-md-12">
              <h3 class="page-title"><?php 
echo $page_title;
?>
</h3>
              <!--<ul class="breadcrumb breadcrumb-arrows breadcrumb-default">
                <li><a href="<?php 
echo SITE_ADMIN_URL;
?>
"><i class="fa fa-home fa-lg"></i></a></li>
Example #11
0
<?php

$write = affilateright("emailtemplate", "write");
$read = affilateright("emailtemplate", "read");
?>
<div class="container">
          <div class="row">
            <div class="col-md-12">
              <h3 class="page-title"><?php 
echo $page_title;
?>
</h3>
              <!--<ul class="breadcrumb breadcrumb-arrows breadcrumb-default">
                <li><a href="<?php 
echo SITE_ADMIN_URL;
?>
"><i class="fa fa-home fa-lg"></i></a></li>
                <li><a href="#ignore">Country(s) Listing  </a></li>
               </ul> -->
               
                <?php 
echo $breadcrumds;
?>
            </div>
          </div>
        </div>
		
 <div class="container">
           <?php 
if ($this->session->flashdata('error')) {
    ?>
Example #12
0
<?php

$write = affilateright("banner", "write");
$read = affilateright("banner", "read");
?>
<div class="container">
          <div class="row">
            <div class="col-md-12">
              <h3 class="page-title"><?php 
echo $page_titles;
?>
</h3>
              <!--<ul class="breadcrumb breadcrumb-arrows breadcrumb-default">
                <li><a href="<?php 
//SITE_ADMIN_URL;
?>
"><i class="fa fa-home fa-lg"></i></a></li>
                <li><a href="#ignore">Modify Banner</a></li>
               </ul> -->
                <?php 
echo $breadcrumds;
?>
            </div>
          </div>
        </div>
		
 <div class="container">
           <?php 
if ($this->session->flashdata('error')) {
    ?>
 <div class="alert alert-danger"> <?php 
Example #13
0
<?php

$write = affilateright("regions", "write");
$read = affilateright("regions", "read");
?>
<div class="container">
          <div class="row">
            <div class="col-md-12">
              <h3 class="page-title"><?php 
echo $page_title;
?>
</h3>
              <!--<ul class="breadcrumb breadcrumb-arrows breadcrumb-default">
                <li><a href="<?php 
echo SITE_ADMIN_URL;
?>
"><i class="fa fa-home fa-lg"></i></a></li>
                <li><a href="#ignore">Country(s) Listing  </a></li>
               </ul> -->
               
                <?php 
echo $breadcrumds;
?>
            </div>
          </div>
        </div>
		
 <div class="container">
           <?php 
if (isset($error)) {
    ?>
 function edit($id = 0)
 {
     $images_error = array();
     $region_map_img_name = "";
     $region_flag_img_name = "";
     $region_image_img_name = "";
     $region_coverimage_img_name = "";
     //*******************************  Validation  ********************
     $config = array(array('field' => 'regions[]', 'label' => "Regions ", 'rules' => 'required'), array('field' => 'name', 'label' => "Name", 'rules' => 'required|callback_editname_check'), array('field' => 'kind', 'label' => "User Kind", 'rules' => 'required'), array('field' => 'category', 'label' => "Category", 'rules' => 'required'), array('field' => 'tags', 'label' => "Tags", 'rules' => 'required'));
     if (affilateright("peopleprofile", "write") == true) {
         $this->form_validation->set_rules($config);
         if ($this->form_validation->run() == TRUE) {
             // echo "<pre>";
             // print_r($this->input->post());
             // print_r($_FILES);
             $data["regions"] = $this->input->post("regions");
             $data["name"] = $this->input->post("name");
             $data["kind"] = $this->input->post("kind");
             $data["kind"] = $this->input->post("kind");
             $data["category"] = $this->input->post("category");
             $data["month"] = $this->input->post("month");
             $data["day"] = $this->input->post("day");
             $data["year"] = $this->input->post("year");
             $data["video"] = $this->input->post("video");
             $data["profiledetail"] = $this->input->post("profiledetail");
             $data["tags"] = $this->input->post("tags");
             $data["facebook"] = $this->input->post("facebook");
             $data["facebookfunpage"] = $this->input->post("facebookfunpage");
             $data["twitter"] = $this->input->post("twitter");
             $data["twitterfunpage"] = $this->input->post("twitterfunpage");
             $data["status"] = $this->input->post("status");
             $data["rejectreason"] = $this->input->post("rejectreason");
             $data["shortdesc"] = $this->input->post("shortdesc");
             $data["twittershortdesc"] = $this->input->post("twittershortdesc");
             $data["id"] = $this->input->post("id");
             $peopleprofileid = $this->input->post("id");
             //*******************************************************************
             if (!empty($_FILES["image"]['name'])) {
                 $gettmp_tumbs_arr = array();
                 $imagecounter = 1;
                 $ext = explode(".", $_FILES["image"]['name']);
                 $ext = strtolower($ext[1]);
                 $uploadConst['upload_path'] = SITE_UPLOADPATH;
                 $uploadConst['allowed_types'] = 'gif|jpg|png|bmp|jpeg';
                 //$uploadConst['max_size'] = REGION_MAP;
                 // $uploadConst['max_width'] = '1200';
                 // $uploadConst['max_height'] = '900';
                 // $uploadConst['min_width'] = '1400';
                 // $uploadConst['min_height'] = '900';
                 $uploadConst['overwrite'] = TRUE;
                 $uploadConst['file_name'] = 'peopleprofile-' . $peopleprofileid . "." . $ext;
                 $this->upload->initialize($uploadConst);
                 if (!$this->upload->do_upload('image')) {
                     $remap_error = $this->upload->display_errors();
                     $images_error["peopleprofile_error"] = $remap_error;
                 } else {
                     $config = array();
                     $image_data = array();
                     $image_data = $this->upload->data();
                     $region_image_img_name = $image_data["orig_name"];
                     $region_ext_img_name = $image_data["file_ext"];
                     $gettmp_tumbs_arr[$peopleprofileid] = $image_data['full_path'];
                     //********************************* Resize ****************************
                     foreach ($gettmp_tumbs_arr as $key => $imageurl) {
                         unset($config);
                         $config = array('image_library' => 'gd2', 'source_image' => $imageurl, 'new_image' => SITE_UPLOADPATH, 'maintain_ratio' => false, 'overwrite' => TRUE, 'file_name' => 'peopleprofile-' . $key . "." . $ext, 'width' => 800, 'height' => 520);
                         $this->image_lib->initialize($config);
                         // $this->image_lib->resize();
                         if (!$this->image_lib->resize()) {
                             $this->image_lib->display_errors();
                         }
                         unset($config);
                         $this->image_lib->clear();
                         /*************************************/
                         unset($config);
                         $config = array('image_library' => 'gd2', 'source_image' => $imageurl, 'new_image' => SITE_UPLOADPATH . 'thumbs/', 'maintain_ratio' => false, 'overwrite' => TRUE, 'file_name' => 'peopleprofile-' . $key . "." . $ext, 'width' => 300, 'height' => 250);
                         $this->image_lib->initialize($config);
                         // $this->image_lib->resize();
                         if (!$this->image_lib->resize()) {
                             $this->image_lib->display_errors();
                         }
                         unset($config);
                         $this->image_lib->clear();
                     }
                     //*************************************************************************
                 }
             }
             //********************************************************************
             if (empty($images_error)) {
                 $data["peopleprofile_image"] = $region_image_img_name;
                 $this->peopleprofile_model->update($data);
                 $this->session->set_flashdata('sucess', "People profile have been updated sucessfully");
                 redirect('admin/peopleprofile');
             }
         }
         //*****************************  Validation **************************************
         // add breadcrumbs
         //$this->breadcrumbs->push('Home', '/admin/dashboard');
         $datas['sitetitle'] = 'Modify/Listing peopleprofile >Add ';
         $homeicon = htmlentities('<i class="fa fa-home fa-lg"></i>');
         $this->breadcrumbs->push($homeicon, '/admin/dashboard');
         $this->breadcrumbs->push('Dashboard', "/admin/dashboard");
         $this->breadcrumbs->push('Modify/Listing Profile ', "/admin/peopleprofile");
         $this->breadcrumbs->push('<a href="#ignore">Edit</a>', "/admin/peopleprofile/edit");
         $breadcrumds = $this->breadcrumbs->show();
         //   admin_lists
         $datas['id'] = $id;
         $datas['page_action'] = 'Edit';
         $datas['title'] = 'Modify/Listing peopleprofile';
         $data['sitetitle'] = 'Modify/Listing peopleprofile > Edit';
         $datas['page_title'] = 'Modify/Listing peopleprofile';
         $datas['breadcrumds'] = $breadcrumds;
         $datas['images_error'] = $images_error;
         $editdata = $this->peopleprofile_model->GetpeopleprofileById($id);
         $regions_arr = $this->peopleprofile_model->GetAllRegion();
         $datas['regions_arr'] = $regions_arr;
         $Categorys_arr = $this->peopleprofile_model->GetAllCategory();
         $datas['categorys_arr'] = $Categorys_arr;
         $datas['admin_id'] = $editdata[0]["admin_id"];
         if ($this->input->post("name")) {
             $datas['name'] = $this->input->post("name");
         } elseif (!empty($editdata)) {
             $datas['name'] = $editdata[0]["title"];
         } else {
             $datas['name'] = "";
         }
         if ($this->input->post("regions")) {
             $datas['regions'] = $this->input->post("regions");
         } elseif (!empty($editdata)) {
             $data_tmp = explode(",", $editdata[0]["region_id"]);
             foreach ($data_tmp as $key => $getid) {
                 $tmp_regions[$getid] = $getid;
             }
             if (!empty($tmp_regions)) {
                 $datas['regions'] = $tmp_regions;
             } else {
                 $datas['regions'] = "";
             }
         } else {
             $datas['regions'] = "";
         }
         if ($this->input->post("category")) {
             $datas['category'] = $this->input->post("category");
         } elseif (!empty($editdata)) {
             $datas['category'] = $editdata[0]["category"];
         } else {
             $datas['category'] = "";
         }
         if ($this->input->post("kind")) {
             $datas['kind'] = $this->input->post("kind");
         } elseif (!empty($editdata)) {
             $datas['kind'] = $editdata[0]["kind"];
         } else {
             $datas['kind'] = "";
         }
         if ($this->input->post("shortdesc")) {
             $datas['shortdesc'] = $this->input->post("shortdesc");
         } elseif (!empty($editdata)) {
             $datas['shortdesc'] = $editdata[0]["shortdesc"];
         } else {
             $datas['shortdesc'] = "";
         }
         if ($this->input->post("twittershortdesc")) {
             $datas['twittershortdesc'] = $this->input->post("twittershortdesc");
         } elseif (!empty($editdata)) {
             $datas['twittershortdesc'] = $editdata[0]["twittershortdesc"];
         } else {
             $datas['twittershortdesc'] = "";
         }
         if (!empty($editdata)) {
             $datas['image'] = $editdata[0]["image"];
         } else {
             $datas['image'] = "";
         }
         list($year, $month, $day) = explode("-", $editdata[0]["dob"]);
         if ($this->input->post("year")) {
             $datas['year'] = $this->input->post("year");
         } elseif (!empty($editdata)) {
             $datas['year'] = $year;
         } else {
             $datas['year'] = "";
         }
         if ($this->input->post("month")) {
             $datas['month'] = $this->input->post("month");
         } elseif (!empty($editdata)) {
             $datas['month'] = $month;
         } else {
             $datas['month'] = "";
         }
         if ($this->input->post("day")) {
             $datas['day'] = $this->input->post("day");
         } elseif (!empty($editdata)) {
             $datas['day'] = $day;
         } else {
             $datas['day'] = "";
         }
         if ($this->input->post("video")) {
             $datas['video'] = $this->input->post("video");
         } elseif (!empty($editdata)) {
             $datas['video'] = $editdata[0]["video"];
         } else {
             $datas['video'] = "";
         }
         if ($this->input->post("profiledetail")) {
             $datas['profiledetail'] = $this->input->post("profiledetail");
         } elseif (!empty($editdata)) {
             $datas['profiledetail'] = $editdata[0]["description"];
         } else {
             $datas['profiledetail'] = "";
         }
         if ($this->input->post("tags")) {
             $datas['tags'] = $this->input->post("tags");
         } elseif (!empty($editdata)) {
             $datas['tags'] = $editdata[0]["tags"];
         } else {
             $datas['tags'] = "";
         }
         if ($this->input->post("facebook")) {
             $datas['facebook'] = $this->input->post("facebook");
         } elseif (!empty($editdata)) {
             $datas['facebook'] = $editdata[0]["facebook"];
         } else {
             $datas['facebook'] = "";
         }
         if ($this->input->post("facebookfunpage")) {
             $datas['facebookfunpage'] = $this->input->post("facebookfunpage");
         } elseif (!empty($editdata)) {
             $datas['facebookfunpage'] = $editdata[0]["facebookfanpage"];
         } else {
             $datas['facebookfunpage'] = "";
         }
         if ($this->input->post("twitter")) {
             $datas['twitter'] = $this->input->post("twitter");
         } elseif (!empty($editdata)) {
             $datas['twitter'] = $editdata[0]["twitter"];
         } else {
             $datas['twitter'] = "";
         }
         if ($this->input->post("twitterfunpage")) {
             $datas['twitterfunpage'] = $this->input->post("twitterfunpage");
         } elseif (!empty($editdata)) {
             $datas['twitterfunpage'] = $editdata[0]["twitterfanpage"];
         } else {
             $datas['twitterfunpage'] = "";
         }
         if ($this->input->post("status")) {
             $datas['status'] = $this->input->post("status");
         } elseif (!empty($editdata)) {
             $datas['status'] = $editdata[0]["status"];
         } else {
             $datas['status'] = "";
         }
         $datas['results'] = array();
         $this->openView($datas, 'add');
     } else {
         $this->session->set_flashdata('rightmsg', 'You have not write right to access');
         redirect('admin/dashboard');
     }
 }
Example #15
0
 function edit($id)
 {
     $data['page_action'] = 'Edit';
     $page_id = $id;
     $data['id'] = $id;
     if (affilateright("about", "write") == true) {
         $homeicon = htmlentities('<i class="fa fa-home fa-lg"></i>');
         $this->breadcrumbs->push($homeicon, '/admin/dashboard');
         $this->breadcrumbs->push('Dashboard', "/admin/dashboard");
         $this->breadcrumbs->push('Modify Pages', "/admin/pages");
         $this->breadcrumbs->push('<a href="#ignore">Edit </a>', "&nbsp;");
         $breadcrumds = $this->breadcrumbs->show();
         $data['breadcrumds'] = $breadcrumds;
         $data['sitetitle'] = 'Modify Pages  ';
         $data['page_titles'] = 'Modify Pages  ';
         $data['page_action'] = 'Modify Pages ';
         $config = array(array('field' => 'page_title', 'label' => "PAge Title", 'rules' => 'required|callback_title_check'));
         $config = array(array('field' => 'page_title', 'label' => "Page Title", 'rules' => 'required|callback_edittitle_check'));
         $this->form_validation->set_rules($config);
         if ($this->form_validation->run() == TRUE) {
             $data = $_POST;
             $ret = $this->pages_model->addeditPage($data, $page_id);
             $this->session->set_flashdata('success', 'Page Edited Successfully');
             redirect('admin/pages');
         }
         /*
                if($this->input->post() == '')
                		{
         				$RsData=$this->page->GetPageById($page_id);
                         if(count($RsData)>0)  {$data['results']=$RsData[0];}
         				$this->openView($data,'add');
         			} 
         	   else
         			{
         				$data=$_POST;
         				$ret      = $this->page->addeditPage($data,$page_id);
         				if($ret>0)
         				{
         				    $data['vendor_id']=$page_id;
         					$this->session->set_flashdata('item', 'Page Edited Successfully');
         					redirect('admin/pages');
         				}
         				else
         				{
         					$data['results'] = $_POST;
         					$this->session->set_flashdata('item', 'Enter Unique Page synonums');
         					$this->openView($data,'add');
         				}
         			}
         */
         $RsData = $this->pages_model->GetPageById($page_id);
         if (count($RsData) > 0) {
             $data['results'] = $RsData[0];
         }
         $this->openView($data, 'add');
     } else {
         $this->session->set_flashdata('rightmsg', 'You have not write right to access');
         redirect('admin/dashboard');
     }
 }
Example #16
0
<?php

$write = affilateright("calendar", "write");
$read = affilateright("calendar", "read");
?>
<div class="container">
          <div class="row">
            <div class="col-md-12">
              <h3 class="page-title"><?php 
echo $page_title;
?>
</h3>
              <!--<ul class="breadcrumb breadcrumb-arrows breadcrumb-default">
                <li><a href="<?php 
echo SITE_ADMIN_URL;
?>
"><i class="fa fa-home fa-lg"></i></a></li>
                <li><a href="#ignore">Country(s) Listing  </a></li>
               </ul> -->
               
                <?php 
echo $breadcrumds;
?>
            </div>
          </div>
        </div>
		
 <div class="container">
           <?php 
if ($this->session->flashdata('error')) {
    ?>
Example #17
0
<?php

$write = affilateright("memlist", "write");
$read = affilateright("memlist", "read");
?>
<div class="container">
          <div class="row">
            <div class="col-md-12">
              <h3 class="page-title"><?php 
echo $page_titles;
?>
</h3>
               <?php 
echo $breadcrumds;
?>
            </div>
          </div>
        </div>
		
 <div class="container">
             <?php 
if ($this->session->flashdata('error')) {
    ?>
 <div class="alert alert-danger"> <?php 
    echo $this->session->flashdata('error');
    ?>
</div><?php 
}
//$success = $this->session->flashdata('item');
if ($this->session->flashdata('sucess')) {
    ?>
Example #18
0
<?php

$write = affilateright("dashboard", "gtaskwrite");
$read = affilateright("dashboard", "gtaskread");
?>
<div class="container">
          <div class="row">
            <div class="col-md-12">
              <h3 class="page-title"><?php 
echo $page_title;
?>
</h3>
              <!--<ul class="breadcrumb breadcrumb-arrows breadcrumb-default">
                <li><a href="<?php 
echo SITE_ADMIN_URL;
?>
"><i class="fa fa-home fa-lg"></i></a></li>
                <li><a href="#ignore">Country(s) Listing  </a></li>
               </ul> -->
               
                <?php 
echo $breadcrumds;
?>
            </div>
          </div>
        </div>
		
 <div class="container">
           <?php 
if ($this->session->flashdata('error')) {
    ?>
Example #19
0
<?php

$write = affilateright("stats", "write");
$read = affilateright("stats", "read");
?>
<div class="container">
          <div class="row">
            <div class="col-md-12">
              <h3 class="page-title"><?php 
echo $page_title;
?>
</h3>
              <!--<ul class="breadcrumb breadcrumb-arrows breadcrumb-default">
                <li><a href="<?php 
echo SITE_ADMIN_URL;
?>
"><i class="fa fa-home fa-lg"></i></a></li>
                <li><a href="#ignore">Country(s) Listing  </a></li>
               </ul> -->
               
                <?php 
echo $breadcrumds;
?>
            </div>
          </div>
        </div>
<style>
  .new_col6 > div:nth-child(2n+1) {
  clear: both;
}
.span2{
Example #20
0
<?php

$write = affilateright("masterlist", "write");
$read = affilateright("masterlist", "read");
?>
<style>
.master-btn .btn {
  -moz-border-bottom-colors: none;
  -moz-border-left-colors: none;
  -moz-border-right-colors: none;
  -moz-border-top-colors: none;
  background-color: #f5f5f5;
  background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
  background-repeat: repeat-x;
  border-color: #cccccc #cccccc #b3b3b3;
  border-image: none;
  border-style: solid;
  border-width: 1px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05);
  color: #333333;
  cursor: pointer;
  display: inline-block;
  line-height: 20px;
  margin-bottom: 0;
  padding: 4px 12px;
  text-align: center;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  vertical-align: middle;
}

.master-btn .btn:hover, .btn:focus, .btn:active, .btn.active, .btn.disabled, .btn[disabled] {
Example #21
0
<?php

$write = affilateright("peopleprofile", "write");
$read = affilateright("peopleprofile", "read");
?>
<div class="container">
          <div class="row">
            <div class="col-md-12">
              <h3 class="page-title"><?php 
echo $page_title;
?>
</h3>
              <!--<ul class="breadcrumb breadcrumb-arrows breadcrumb-default">
                <li><a href="<?php 
echo SITE_ADMIN_URL;
?>
"><i class="fa fa-home fa-lg"></i></a></li>
                <li><a href="#ignore">Country(s) Listing  </a></li>
               </ul> -->
               
                <?php 
echo $breadcrumds;
?>
            </div>
          </div>
        </div>
		
 <div class="container">
           <?php 
if ($this->session->flashdata('error')) {
    ?>
 function edit($id = 0)
 {
     $images_error = array();
     $region_map_img_name = "";
     $region_flag_img_name = "";
     $region_image_img_name = "";
     $region_coverimage_img_name = "";
     //*******************************  Validation  ********************
     $config = array(array('field' => 'title', 'label' => "Email title ", 'rules' => 'required|callback_edittitle_check'), array('field' => 'from_mail', 'label' => "From Mail", 'rules' => 'required'), array('field' => 'subject', 'label' => "Email Subject", 'rules' => 'required'), array('field' => 'temp_content', 'label' => "Email Content", 'rules' => 'required'));
     // |callback_editname_check
     if (affilateright("emailtemplate", "write") == true) {
         $this->form_validation->set_rules($config);
         if ($this->form_validation->run() == TRUE) {
             // echo "<pre>";
             // print_r($this->input->post());
             // exit;
             // print_r($_FILES);
             $data["title"] = $this->input->post("title");
             $data["from_mail"] = $this->input->post("from_mail");
             $data["subject"] = $this->input->post("subject");
             $data["temp_content"] = $this->input->post("temp_content");
             $data["id"] = $this->input->post("id");
             //********************************************************************
             $this->emailtemplate_model->update($data);
             $this->session->set_flashdata('sucess', "emailtemplate have been updated sucessfully");
             redirect('admin/emailtemplate');
         }
         //*****************************  Validation **************************************
         // add breadcrumbs
         //$this->breadcrumbs->push('Home', '/admin/dashboard');
         $datas['sitetitle'] = 'Modify/Listing Email template >Add ';
         $homeicon = htmlentities('<i class="fa fa-home fa-lg"></i>');
         $this->breadcrumbs->push($homeicon, '/admin/dashboard');
         $this->breadcrumbs->push('Dashboard', "/admin/dashboard");
         $this->breadcrumbs->push('Modify/Listing Email template ', "/admin/emailtemplate");
         $this->breadcrumbs->push('<a href="#ignore">Edit</a>', "/admin/emailtemplate/edit");
         $breadcrumds = $this->breadcrumbs->show();
         //   admin_lists
         $datas['id'] = $id;
         $datas['page_action'] = 'Edit';
         $datas['title'] = 'Modify/Listing Email template';
         $data['sitetitle'] = 'Modify/Listing Email template > Edit';
         $datas['page_title'] = 'Modify/Listing Email template';
         $datas['breadcrumds'] = $breadcrumds;
         $datas['images_error'] = $images_error;
         $editdata = $this->emailtemplate_model->GetById($id);
         if ($this->input->post("title")) {
             $datas['title'] = $this->input->post("title");
         } elseif (!empty($editdata)) {
             $datas['title'] = $editdata[0]["title"];
         } else {
             $datas['title'] = "";
         }
         if ($this->input->post("from_mail")) {
             $datas['from_mail'] = $this->input->post("from_mail");
         } elseif (!empty($editdata)) {
             $datas['from_mail'] = $editdata[0]["from_mail"];
         } else {
             $datas['from_mail'] = "";
         }
         if ($this->input->post("subject")) {
             $datas['subject'] = $this->input->post("subject");
         } elseif (!empty($editdata)) {
             $datas['subject'] = $editdata[0]["subject"];
         } else {
             $datas['subject'] = "";
         }
         if ($this->input->post("temp_content")) {
             $datas['temp_content'] = $this->input->post("temp_content");
         } elseif (!empty($editdata)) {
             $datas['temp_content'] = $editdata[0]["temp_content"];
         } else {
             $datas['temp_content'] = "";
         }
         $this->openView($datas, 'add');
     } else {
         $this->session->set_flashdata('rightmsg', 'You have not write right to access');
         redirect('admin/dashboard');
     }
 }
Example #23
0
<?php

$write = affilateright("affilateright", "write");
$read = affilateright("affilateright", "read");
?>
 <?php 
include "rights.php";
?>

<div class="container">
          <div class="row">
            <div class="col-md-12">
              <h3 class="page-title"><?php 
echo $page_title;
?>
</h3>
              <!--<ul class="breadcrumb breadcrumb-arrows breadcrumb-default">
                <li><a href="<?php 
echo SITE_ADMIN_URL;
?>
"><i class="fa fa-home fa-lg"></i></a></li>
                <li><a href="#ignore">Country(s) Listing  </a></li>
               </ul> -->
               
                <?php 
echo $breadcrumds;
?>
            </div>
          </div>
        </div>