public function activate()
 {
     if (constant("ENVIRONMENT") == 'demo') {
         $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
     } else {
         $this->themes_model->activate();
         $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('theme_activated') . '</div>');
     }
     redirect(site_url('admin/themes'));
 }
示例#2
0
 function get_locations_region_json($type, $parent)
 {
     $this->db->select('*');
     $this->db->from('locations');
     $this->db->where(array('status' => 1, 'type' => $type, 'parent' => $parent));
     $this->db->order_by('name', 'ASC');
     $query = $this->db->get();
     $data = array();
     $str = '<option value="" selected="selected">' . lang_key('Select Region') . '</option>';
     foreach ($query->result() as $row) {
         $val = array();
         $val['id'] = $row->id;
         $val['label'] = $row->name;
         $str .= '<option value="' . $val['label'] . '">' . lang_key($val['label']) . '</option>';
     }
     return $str;
 }
示例#3
0
文件: products.php 项目: ageo80/test
function sort_url($lang, $by, $sort, $sorder, $code, $admin_folder)
{
    if ($sort == $by) {
        if ($sorder == 'asc') {
            $sort = 'desc';
            $icon = ' <i class="icon-chevron-up"></i>';
        } else {
            $sort = 'asc';
            $icon = ' <i class="icon-chevron-down"></i>';
        }
    } else {
        $sort = 'asc';
        $icon = '';
    }
    $return = site_url($admin_folder . '/products/index/' . $by . '/' . $sort . '/' . $code);
    echo '<a href="' . $return . '">' . lang_key($lang) . $icon . '</a>';
}
示例#4
0
 function update_password()
 {
     if ($this->session->userdata('recovery') != 'yes') {
         $this->form_validation->set_rules('current_password', 'Current Password', 'required|callback_currentpass_check');
     }
     $this->form_validation->set_rules('new_password', 'New Password', 'required|matches[re_password]');
     $this->form_validation->set_rules('re_password', 'Password Confirmation', 'required');
     if ($this->form_validation->run() == FALSE) {
         $this->changepass();
     } else {
         if (constant("ENVIRONMENT") == 'demo') {
             $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
         } else {
             $password = $this->input->post('new_password');
             $this->auth_model->update_password($password);
             $this->session->set_userdata('recovery', "no");
             $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('Password changed successfully') . '</div>');
         }
         redirect(site_url('admin/auth/changepass'));
     }
 }
 public function create_review()
 {
     $this->form_validation->set_rules('comment', lang_key('comment'), 'required');
     if ($this->form_validation->run() == FALSE) {
         $this->load_review_form($this->input->post('post_id'));
     } else {
         $post_id = $this->input->post('post_id');
         $data = array();
         $data['comment'] = $this->input->post('comment');
         $data['post_id'] = $post_id;
         $data['rating'] = $this->input->post('rating');
         $data['created_by'] = get_id_by_username($this->session->userdata('user_name'));
         $time = time();
         $data['status'] = 1;
         $data['create_time'] = $time;
         $review_id = $this->review_model->insert_review($data);
         $average_rating = get_post_average_rating($post_id);
         $this->review_model->update_post_average_rating($post_id, $average_rating);
         echo '<div class="alert alert-success">' . lang_key('review_submitted') . '</div>';
         $this->load_review_form($post_id);
         // $this->single_review_view($review_id);
     }
 }
示例#6
0
<!DOCTYPE html>

<html lang="en">

<head>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta charset="utf-8">

    <?php 
$page = get_current_page();
if (!isset($sub_title)) {
    $sub_title = isset($page['title']) ? $page['title'] : lang_key('list_your_ad');
}
$seo = isset($page['seo_settings']) && $page['seo_settings'] != '' ? (array) json_decode($page['seo_settings']) : array();
if (!isset($meta_desc)) {
    $meta_desc = isset($seo['meta_description']) ? $seo['meta_description'] : get_settings('site_settings', 'meta_description', 'autocon car dealership');
}
if (!isset($key_words)) {
    $key_words = isset($seo['key_words']) ? $seo['key_words'] : get_settings('site_settings', 'key_words', 'car dealership,car listing, house, car');
}
if (!isset($crawl_after)) {
    $crawl_after = isset($seo['crawl_after']) ? $seo['crawl_after'] : get_settings('site_settings', 'crawl_after', 3);
}
?>

    <?php 
if (isset($post)) {
    echo isset($post) ? social_sharing_meta_tags_for_post($post) : '';
} elseif (isset($blog_meta)) {
示例#7
0
    foreach ($query->result() as $row) {
        if (get_settings('realestate_settings', 'hide_posts_if_expired', 'No') == 'Yes') {
            $is_expired = is_user_package_expired($row->created_by);
            if ($is_expired) {
                continue;
            }
        }
        $title = get_title_for_edit_by_id_lang($row->id, $curr_lang);
        $estate = array();
        $estate['estate_id'] = $row->id;
        $estate['estate_title'] = $title;
        $estate['featured_image_url'] = get_featured_photo_by_id($row->featured_img);
        $estate['latitude'] = $row->latitude;
        $estate['longitude'] = $row->longitude;
        $estate['estate_type'] = $row->type;
        $estate['estate_type_lang'] = lang_key($row->type);
        $estate['estate_status'] = $row->status;
        $estate['estate_price'] = show_price($row->total_price);
        $estate['estate_short_address'] = get_location_name_by_id($row->city) . ',' . get_location_name_by_id($row->state) . ',' . get_location_name_by_id($row->country);
        $estate['detail_link'] = site_url('property/' . $row->unique_id . '/' . dbc_url_title($title));
        array_push($estates, $estate);
    }
    $data['estates'] = $estates;
}
?>
<style>
    #pac-input-<?php 
echo $map_id;
?>
 {
        background-color: #fff;
"><i class="fa fa-th "></i></a>
        	<a target="featured-posts" href="<?php 
echo site_url('show/featuredposts_ajax/' . $per_page . '/list');
?>
"><i class="fa fa-th-list "></i></a>
        </div>
    </h3>
</div>
<span class="featured-posts">
</span>
<div class="ajax-loading featured-loading"><img src="<?php 
echo theme_url();
?>
/assets/img/loading.gif" alt="loading..."></div>
<a href="" class="load-more-featured btn btn-blue" style="width:100%"><?php 
echo lang_key('load_more_featured_posts');
?>
</a>
<div style="clear:both;margin-top:20px"></div>
<script type="text/javascript">
var per_page = '<?php 
echo $per_page;
?>
';
var featured_count = '<?php 
echo $per_page;
?>
';

jQuery(document).ready(function(){
	jQuery('.featured-list-switcher a').click(function(e){
</div>



<div id="position-instruction" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">

    <div class="modal-dialog">

        <div class="modal-content">

            <div class="modal-header">

                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>

                <h4 class="modal-title" id="myModalLabel"><?php 
echo lang_key('widget_positions');
?>
 </h4>

            </div>

            <div class="modal-body">
                <img src="<?php 
echo base_url('assets/admin/img/position-one.png');
?>
" style="width:100%" />
            </div>

            <div class="modal-footer">

            </div>
示例#10
0
<h3 class="widget-title"><?php 
echo lang_key('Follow Us');
?>
</h3>
<div class="widget-body">
    <p class="follow-me-icons">
       <a href=""><i class="fa fa-facebook fa-2"></i></a>
        <a href=""><i class="fa fa-twitter fa-2"></i></a>
        <a href=""><i class="fa fa-google-plus fa-2"></i></a>
<!--        <a href="<?php 
//echo site_url("show/rss");
?>
"><i class="fa fa-rss fa-2"></i></a>-->
    </p>    
</div>
<?php 
/*if(@file_exists('./sitemap.xml')){?>
    <h3 class="widget-title">Site Map</h3>
    <a href="<?php //echo site_url('show/sitemap')?>"> Show site map</a>
<?php }*/
示例#11
0
$current_url = base64_encode(current_url() . '/#data-content');
?>
          <div class="<?php 
if ($this->session->userdata('view_style') == 'grid') {
    ?>
col-md-9<?php 
} else {
}
?>
"  style="-webkit-transition: all 0.7s ease-in-out; transition: all 0.7s ease-in-out;">
              
              <?php 
if ($this->session->userdata('view_style') != 'map') {
    ?>
                <h1 class="recent-grid"><span class="OS_icon_f"><i class="fa fa-search fa-4"></i></span>&nbsp;<?php 
    echo lang_key('result');
    ?>
                    <?php 
    //require'switcher_view.php';
    ?>
                </h1>
              <?php 
} else {
    ?>
                <?php 
    //require'switcher_view.php';
    ?>
              <?php 
}
?>
              
" placeholder="<?php 
echo lang_key('fa-car');
?>
" class="form-control input-sm" >
						<?php 
echo form_error('fa_icon');
?>

					</div>
				</div>	

				<div class="form-group">
					<label class="col-sm-3 col-md-3 control-label">&nbsp;</label>
					<div class="col-sm-4 col-md-4 controls">						
						<button class="btn btn-primary" type="submit"><i class="fa fa-check"></i> <?php 
echo lang_key('save');
?>
</button>
					</div>
				</div>


			</form>

	  </div>
    </div>
  </div>
</div>
<script type="text/javascript">
jQuery(document).ready(function(){
	jQuery('#parent').change(function(){
<div class="alert alert-danger">
    <button type="button" class="close" data-dismiss="alert">&times;</button>
    <strong>Warning!</strong> <?php 
echo lang_key('delete_warning');
?>

</div>
<a href="<?php 
echo $url . "/{$id}/yes";
?>
" class="btn btn-success"><?php 
echo lang_key('yes');
?>
</a><a href="<?php 
echo $url . "/{$id}/no";
?>
" class="btn btn-inverse" style="margin-left:10px;"><?php 
echo lang_key('no');
?>
</a>
示例#14
0
            </a>

            <?php 
if ($CI->uri->segment(1) == '') {
    $uri .= '/' . default_lang();
}
echo '<ul class="dropdown-menu dropdown-navbar" id="user_menu2">';
$url = $uri;
foreach ($languages as $short_name => $long_name) {
    $uri = str_replace('/' . $curr_lang . '/', '/' . $short_name . '/', $url);
    $sel = $curr_lang == $short_name ? 'active' : '';
    echo '<li class="' . $sel . '"><a href="' . $uri . '">' . $long_name . '</a></li>';
}
echo '</ul>';
?>

        </li>
		<li>
			<a href="<?php 
echo site_url();
?>
">
				<i class="fa fa-laptop"></i>
				<span class="hhh user_info"><?php 
echo lang_key("visit_site");
?>
</span>
			</a>
		</li>
	</ul>
</div>
echo form_error('user_email');
?>
                        <hr>

                        <div class="row">
                            <div class="col-lg-8">
                                <label class="checkbox">
                                    <a target="_blank" href="<?php 
echo site_url('account/signup');
?>
"><?php 
echo lang_key('sign_up');
?>
</a>
                                </label>
                            </div>
                            <div class="col-lg-4 text-right">
                                <button class="btn btn-action" type="submit"><?php 
echo lang_key('recover');
?>
</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div> <!-- /row -->
</div>

示例#16
0
 public function banuser($id = '', $limit = '')
 {
     if (!is_admin()) {
         echo lang_key('dont_have_permission');
         die;
     }
     $this->load->model('user/user_model');
     if ($limit == 'forever') {
         if (constant("ENVIRONMENT") == 'demo') {
             $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
         } else {
             $this->user_model->banuser($id, $limit);
             $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('user_banned') . '</div>');
         }
         redirect(site_url('admin/userdetail/' . $id));
     }
     $this->form_validation->set_rules('limit', 'Limit', 'required|numeric|xss_clean');
     if ($this->form_validation->run() == FALSE) {
         $this->userdetail($id);
     } else {
         if (constant("ENVIRONMENT") == 'demo') {
             $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
         } else {
             $limit = $this->input->post('limit');
             $this->user_model->banuser($id, $limit);
             $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('user_banned') . '</div>');
         }
         redirect(site_url('admin/userdetail/' . $id));
     }
 }
示例#17
0
        echo character_limiter($title, 20);
        ?>
</span>
                        <div class="clearfix"></div>
                        <span class="property-address" style=""><?php 
        echo get_location_name_by_id($row->city) . ',' . get_location_name_by_id($row->state) . ',' . get_location_name_by_id($row->country);
        ?>
</span>
                        <div class="clearfix"></div>
                        <span class="property-price" style=""><?php 
        echo show_price($row->total_price, $row->id);
        ?>
</span>
                    </div>
                    <div class="clearfix"></div>
                </div>
                <?php 
    }
    ?>
                
            </div>
        <div class="view-more"><a class="" href="<?php 
    echo site_url('show/properties/featured');
    ?>
"><?php 
    echo lang_key('view_all');
    ?>
</a></div>
        <div class="clearfix"></div>
<?php 
}
示例#18
0
文件: step3.php 项目: exluap/meteor
    } else {
        echo '<meta http-equiv="refresh" content="0; url=step4.php" />';
    }
}
?>
				
				</div>
				<div class="panel-footer">
					<div class="row">
						<center>
							<a href="step2.php" class="btn-default btn"><?php 
echo lang_key("back");
?>
</a>
							<input class="btn-primary btn" type="submit" name="submit" value="<?php 
echo lang_key("next");
?>
" />
						</center>
					</div>
				</div>
				</form>
			</div>
		</div>
	</div>
</div>

                            </div> <!-- .container-fluid -->
                        </div> <!-- #page-content -->
                    </div>
<?php 
示例#19
0
            ?>
</div>
                                    <?php 
        }
        ?>
                                </div>
                                <div class="clearfix"></div>
                            </div>
                            <div style="clear:both; border-bottom:1px solid #ccc; margin:10px 0px;"></div>
                            <p>
                                <a href="<?php 
        echo site_url('property/' . $row->unique_id . '/' . dbc_url_title($title));
        ?>
" class="btn btn-primary  btn-labeled">
                                    <?php 
        echo lang_key('details');
        ?>
                                    <span class="btn-label btn-label-right">
                                       <i class="fa fa-arrow-right"></i>
                                    </span>
                                </a>
                            </p>
                        </div>
                    </div>
                    <div class="clearfix"></div>
                </div>
            </div>
        <?php 
    }
}
?>
                            <div class="blog-meta">
                                <!-- Date -->
                                <i class="fa fa-calendar"></i>   <?php 
        echo date('D, M d, Y', $post->create_time);
        ?>
  
                                <!-- Author -->
                                <i class="fa fa-user"></i>   <?php 
        echo get_user_fullname_by_id($post->created_by);
        ?>
</a>

                            </div>
                            <!-- Paragraph -->
                            <p><?php 
        echo truncate(strip_tags($desc), 400, ' <a href="' . site_url('post-detail/' . $post->id . '/' . dbc_url_title($title)) . '">' . lang_key('view_more') . '</a>', false);
        ?>
</p>
                        </div>
                    </div>
                    <!-- Blog item ends -->
                <?php 
    }
}
?>
            <ul class="pagination">
                <?php 
echo isset($pages) ? $pages : '';
?>
            </ul>
    echo site_url('show/categoryposts/' . $parent->id . '/' . dbc_url_title(lang_key($parent->title)));
    ?>
">
										<i class="fa <?php 
    echo $parent->fa_icon . ' ' . $class;
    ?>
"></i>
										</a>
										<!-- Heading -->
										<h4><span class="number-count" data-from="0" data-to="<?php 
    echo $CI->post_model->count_post_by_category_id($parent->id);
    ?>
" data-speed="800" data-refresh-interval="50"></span></h4>
										<!-- Paragraph -->
										<h6><?php 
    echo lang_key($parent->title);
    ?>
</h6>
										<div class="clearfix"></div>
									</div>
								</div>
								<?php 
}
?>


						<div class="clearfix"></div>
					</div>

</div>
<script type="text/javascript">
示例#22
0
                        <div class="col-sm-12">
                            <input type="password" name="repassword" class="form-control" placeholder="">
                        </div>
                     </div>
                     <br>
                     <div class="row">
                        <div class="col-sm-12">
                            <button type="submit" class="btn btn-primary pull-left"> <?php 
echo lang_key('sign_up');
?>
</button>
                            <a style="margin:10px 0 0 10px;" href="<?php 
echo site_url('account/trylogin');
?>
"><?php 
echo lang_key('sign_in');
?>
</a><a style="margin-left:10px;" href="<?php 
echo site_url('account/recoverpassword');
?>
">Recover</a>
                        </div>
                     </div>
                </form>
            </div>
            <div class="modal-footer">
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
      <div class="box-title">
        <h3><i class="fa fa-bars"></i><?php 
echo lang_key('install_updates');
?>
</h3>
        <div class="box-tool">
          <a href="#" data-action="collapse"><i class="fa fa-chevron-up"></i></a>

        </div>
      </div>
      <div class="box-content">

		<?php 
echo $this->session->flashdata('msg');
?>
		<form action="<?php 
echo site_url('admin/plugins/upload/');
?>
" method="post" enctype="multipart/form-data">
		<input type="file" name="plugin" />

		<button class="btn btn-primary" type="submit" style="margin-top:15px;"><i class="fa fa-check"></i><?php 
echo lang_key('upload_and_install');
?>
</button>
		</form>
		
	</div>
    </div>
  </div>
</div>
示例#24
0
<div class="detail-title"><i class="fa fa-user"></i>&nbsp;<?php 
echo lang_key('confirmation');
?>
</div>
<div class="row">
    <div class="col-md-12" style="min-height:300px">
        <div class="alert alert-info">
            <?php 
echo lang_key('reg_success_message');
?>
        </div>
    </div>    
</div> <!-- /row -->
示例#25
0
 public function cancel_url()
 {
     $this->session->set_flashdata('msg', '<div class="alert alert-warning">' . lang_key('feature_payment_cancel') . '</div>');
     redirect(site_url('admin/realestate/allestatesagent/'));
 }
示例#26
0
 function translate($html = '')
 {
     preg_match_all("^\\[(.*?)\\]^", $html, $fields, PREG_PATTERN_ORDER);
     foreach ($fields[1] as $key) {
         $res = lang_key($key);
         $html = str_replace('[' . $key . ']', $res, $html);
     }
     return $html;
 }
}
?>

<!-- Container -->
<div class="container">

    <div class="blog-two">
        <div class="row">

            <div class="col-md-9 col-sm-12 col-xs-12">
                <?php 
if (count($blogpost) <= 0) {
    ?>

                    <div class="alert alert-danger"><?php 
    echo lang_key('post_not_found');
    ?>
</div>

                <?php 
} else {
    ?>
                    <!-- Blog item starts -->
                    <div class="blog-two-item">
                        <!-- blog two Content -->
                        <div class="blog-two-content">
                            <!-- Blog meta -->
                            <div class="blog-meta">
                                <!-- Date -->
                                <i class="fa fa-calendar"></i> &nbsp; <?php 
    echo date('D, M d, Y', $blogpost->create_time);
"><i class="fa fa-th "></i></a>
        	<a target="recent-posts" href="<?php 
echo site_url('show/recentposts_ajax/' . $per_page . '/list');
?>
"><i class="fa fa-th-list "></i></a>
        </div>
    </h3>
</div>
<span class="recent-posts">
</span>
<div class="ajax-loading recent-loading"><img src="<?php 
echo theme_url();
?>
/assets/img/loading.gif" alt="loading..."></div>
<a href="" class="load-more-recent btn btn-blue" style="width:100%"><?php 
echo lang_key('load_more_recent_posts');
?>
</a>
<div style="clear:both;margin-top:20px"></div>
<script type="text/javascript">
var per_page = '<?php 
echo $per_page;
?>
';
var recent_count = '<?php 
echo $per_page;
?>
';
jQuery(document).ready(function(){
	jQuery('.list-switcher a').click(function(e){
		jQuery('.list-switcher a').removeClass('selected');
 function regdomain()
 {
     $this->session->set_userdata('form_key', rand(1, 500));
     $data = array('error' => '<div class="alert alert-danger" style="margin-top:10px;">' . lang_key('login_failed') . '</div>');
     load_admin_view('regdomain_view', $data);
 }
示例#30
0
 public function deletetransaction($unique_id, $confirmation = '')
 {
     if (!is_admin()) {
         echo lang_key('dont_have_permission');
         die;
     }
     if ($confirmation == '') {
         $data['content'] = load_admin_view('confirmation_view', array('id' => $unique_id, 'url' => site_url('admin/classified/deletetransaction/')), TRUE);
         load_admin_view('template/template_view', $data);
     } else {
         if ($confirmation == 'yes') {
             if (constant("ENVIRONMENT") == 'demo') {
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
             } else {
                 $this->classified_model->delete_transaction($unique_id);
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('transaction_deleted') . '</div>');
             }
             $value['trans'] = $this->classified_model->get_all_transaction();
             $data['title'] = lang_key('transaction');
             $data['content'] = load_admin_view('classified/approve_payment_view', $value, TRUE);
             load_admin_view('template/template_view', $data);
         }
     }
 }