</ul> </div> <div class="change"> <ul> <li><a href="<?php echo site_url('premium-account'); ?> " style=" "><?php echo _clang(CHANGE); ?> </a></li> </ul> </div> </div> <div class="right_bottom"> <ul> <li><?php echo _clang(GO_PREMIUM_C); ?> </li> </ul> </div> </div> </div> <p style="margin-top:25px;" class="flpayment"><?php echo _clang(BY_CLICKING_C); ?> </p> </section> </main>
?> <span class="required">*</span></label> <textarea id="message" name="message" placeholder="<?php echo _clang(DONT_BE_CU); ?> " required="required"></textarea> </p> <div class="comment_recaptcha"><?php echo $recaptcha_html; ?> </div> <p class="indication"> <?php echo _clang(ALL_FIELDS_CA); ?> <span class="required">*</span> <?php echo _clang(ARE_REQUIRED_CU); ?> </p> <input style="width:114px; margin-left:129px;" type="submit" name="submit" value="<?php echo _clang(SUBMIT_BUTTON); ?> " class="btn btn_main" > </form> </div> </div> </section> <?php include_once "includes/sidebars/help_sidebar.php"; ?> </section> </main>
echo $newsletter_review[$n]["title"]; ?> </label> </div> <div class="description"><?php echo $newsletter_review[$n]["message"]; ?> </div> <span><?php echo _clang(PUBLISHED_ON); ?> <?php echo @date('j, F Y', strtotime($newsletter_review[$n]['date'])); ?> <?php echo _clang(BY); ?> <?php echo $newsletter_review[$n]["firstname"]; ?> </span> </div> <?php } } ?> <?php /* ?><?php echo '<pre>'; print_r($newsletter_review); echo '</pre>';?> <div class="fullwidth_left details mostrecentreviews"> <div class="minititle">
function contactus_data() { $this->load->library('form_validation'); $this->recaptcha->recaptcha_check_answer(); //echo "captch->".$this->recaptcha->getIsValid(); die; // field name, error message, validation rules //$this->form_validation->set_rules('email', 'Email Address', 'trim|required|valid_email'); $this->form_validation->set_rules('username', 'User name', 'trim|required'); $this->form_validation->set_rules('usermail', 'Email Address', 'trim|required|valid_email'); $this->form_validation->set_rules('usersite', 'usersite', 'trim'); $this->form_validation->set_rules('subject', 'subject', 'trim'); $this->form_validation->set_rules('message', 'message', 'trim|required'); //$this->form_validation->set_message('is_unique', 'The %s is already taken! Please choose another.'); $this->form_validation->set_error_delimiters('<div class="alert alert-error"><a class="close" data-dismiss="alert">×</a><strong>', '</strong></div>'); if ($this->input->post('redirect')) { $redirect = $this->input->post('redirect'); } else { $redirect = ''; } if ($this->form_validation->run() && $this->recaptcha->getIsValid()) { //$pass = generate_password(); $username = $this->input->post('username'); $usermail = $this->input->post('usermail'); $usersite = $this->input->post('usersite'); $subject = $this->input->post('subject'); $message = $this->input->post('message'); $user_rand_id = $this->functions->get_user_rand_id(); $data_to_store = array('user_rand_id' => $user_rand_id, 'username' => $this->input->post('username'), 'usermail' => $this->input->post('usermail'), 'usersite' => $this->input->post('usersite'), 'subject' => $this->input->post('subject'), 'message' => $this->input->post('message')); //captcha validation //print_r($array); die; $this->load->helper('email'); //load email library $this->load->library('email'); //read parameters from $_POST using input class // check is email addrress valid or no if (valid_email($usermail)) { // compose email $get_admin_detail = get_admin_detail(); //common helper function for admin detail $this->email->from($usermail); $this->email->to($get_admin_detail['email']); $this->email->set_mailtype("html"); $this->email->subject('Contact Us Detail'); //$mail_data['url'] = site_url().'home/confirm/'.base64url_encode($email); $mail_data['username'] = $this->input->post('username'); $mail_data['usermail'] = $this->input->post('usermail'); $mail_data['usersite'] = $this->input->post('usersite'); $mail_data['subject'] = $this->input->post('subject'); $mail_data['message'] = $this->input->post('message'); $message = $this->load->view('mail_templates/contactus_mail', $mail_data, true); //echo $message; die; $this->email->message($message); // try send mail ant if not able print debug if (!$this->email->send()) { $msgadd = "<strong>" . _clang(EMAIL_NOT_SENT) . " </strong>"; //.$this->email->print_debugger(); $data['flash_message'] = TRUE; $this->session->set_flashdata('flash_class', 'alert-error'); $this->session->set_flashdata('flash_message', $msgadd); if ($redirect == 'home') { redirect('home'); } else { redirect('contactus'); } } else { if ($this->user_model->store_user($data_to_store)) { $data['flash_message'] = TRUE; $this->session->set_flashdata('flash_class', 'alert-success'); $this->session->set_flashdata('flash_message', '<strong>' . _clang(WELL_DONE) . '</strong>' . _clang(EMAIL_END) . ''); if ($redirect == 'home') { redirect('home'); } else { redirect('contactus'); } //redirect('kd2a2a0u1g4/user'.''); } else { $data['flash_message'] = TRUE; $this->session->set_flashdata('flash_class', 'alert-error'); $this->session->set_flashdata('flash_message', '<strong>' . _clang(OH_SNAP) . '</strong> ' . _clang(CHANGE_A_FEW_THINGS_UP) . ''); if ($redirect == 'home') { redirect('home'); } else { redirect('contactus'); } } } } else { if ($redirect == 'home') { $this->session->set_flashdata('validation_error_messages', validation_errors()); redirect('home'); } } //redirect('contactus'); //redirect('kd2a2a0u1g4/keyword/update/'.$id.''); } else { if (!$this->recaptcha->getIsValid()) { $this->session->set_flashdata('flash_message', '' . _clang(INCORRECT_CAPTCHA) . ''); $this->session->set_flashdata('flash_class', 'alert-error'); } else { $this->session->set_flashdata('flash_message', '' . _clang(INCORRECT_CREDENTIALS) . ''); $this->session->set_flashdata('flash_class', 'alert-error'); } $this->session->set_flashdata('validation_error_messages', validation_errors()); redirect('contactus'); } //captcha validation over //echo $data_to_store['usermail']; die; //if the insert has returned true then we show the flash message $data['main_content'] = 'contactus_view'; $this->load->view('includes/template', $data); }
?> <li><a href="<?php echo base_url("heading/{$gallery_fun}/{$id}/{$sub}"); ?> "><?php echo _clang(GALLERY); ?> </a></li> <?php } else { ?> <li><a href="<?php echo base_url("heading/{$summary_fun}/{$id}/{$sub}"); ?> "><?php echo _clang(SUMMARY); ?> </a></li> <?php } ?> </ul> </div> <?php $samedate = ''; for ($i = 0; $i < count($heading_data); $i++) { $postid = $heading_data[$i]['posts_id']; $parent = $heading_data[$i]['category']; $sub = $heading_data[$i]['subcategory']; ?>
</div> </div> <div style="clear: both; float: right; font-size: 19px;"> <?php $ci =& get_instance(); $ci->load->model('common_model'); $stack_state_id_selected = $this->session->userdata('stack_state_id'); $stack_city_id_selected = $this->session->userdata('stack_city_id'); if (!empty($stack_state_id_selected)) { $where_state = " AND state_id='{$stack_state_id_selected}'"; $state_name = $ci->common_model->getFieldData('state', 'state_name', $where_state); echo $classifieds = $state_name . ', <span style="color:bfc5ce">' . _clang(FREE_CLASSIFIEDS) . '</span>'; } elseif (!empty($stack_city_id_selected)) { $where_city = " AND city_id='{$stack_city_id_selected}'"; $city_name = $ci->common_model->getFieldData('city', 'city_name', $where_city); echo $classifieds = $city_name . ', <span style="color:#bfc5ce">' . _clang(FREE_CLASSIFIEDS) . '</span>'; } else { if (isset($page_type)) { if ($page_type == 'home') { echo $classifieds = ""; } } else { echo $classifieds = "StacksClassifieds.com, <span style='color:#bfc5ce'>" . _clang(FREE_CLASSIFIEDS) . "</span>"; } } ?> </div> </div> </div> </header>
</article> <?php echo '<div class="pagination">' . $mynl_link . '</div>'; ?> <?php } else { ?> <div class="findnewsletter_form"> <h1 style="clear: both; color: black; text-align: center; margin-top: 64px;"><?php echo _clang(PLEASE_N); ?> <a style="cursor:pointer;" onclick="popup('signin')"><?php echo _clang(LOGIN_N); ?> </a> <?php echo _clang(TO_VIEW); ?> </h1> </div> <?php } ?> </section> </div> </section> <?php include_once "includes/sidebars/newsletter_sidebar.php"; ?> </section>
"><?php echo _clang(PRIVACY); ?> </a></li> <li><a href="<?php echo site_url("term"); ?> "><?php echo _clang(TERM); ?> </a></li> <li><a href="<?php echo site_url('safety'); ?> "> <?php echo _clang(SAFETY); ?> </a></li> </ul> <?php $cms_block = "footer_content"; echo cms_block($cms_block); ?> <?php //echo _clang(ALL_RIGHTS); ?> </div> </div> <script src="<?php echo base_url();
?> <li><a href="<?php echo base_url("single_city"); ?> "><?php echo _clang(POST_LOCAL_ADS); ?> </a> (<?php echo _clang(MAINLY_FREE); ?> )</li> <li><a href="<?php echo base_url("add_post/addpostdata/{$multiple}"); ?> "><?php echo _clang(POST_IN_MULT_CITIES); ?> </a> (<?php echo _clang(PAID_SPONSOR_ADS); ?> )</li> </ul> <div style="margin-top:20px;font-size: 17px;"><?php echo _clang(AD_TYPE_MSG); ?> </div> </div> </div> </div> </section>
<h1> <?php echo _clang(PLEASE_DELETE_CONFIRM); ?> </h1> <p> <?php echo _clang(DELETE_CONTENT); ?> </p> <div class="form-actions" style="margin-left: 125px;"> <button class="btn" type="submit"><?php echo _clang(DELETE_OR_NOT); ?> </button> <!-- <a class="btn" href="<?php echo site_url(); ?> post_national_ads">Cancel</a>--> <a class="btn" onclick="window.history.go(-1); return false;" href="#"><?php echo _clang(CANCLE); ?> </a> </div> </div> <?php echo form_close(); ?> </div> </section>
$page = $this->pagination->create_links(); if (!empty($page)) { $this->session->set_userdata('redirect_url', current_url()); echo '<div class="pagination">' . $this->pagination->create_links() . '</div>'; } else { ?> <div id ="adsFound"> <div class = "pagination"> <p class = "paginationDetails" style = "margin-bottom: 5px;"> <span class = "paginationCount" style = "color: #000; margin: 0; padding: 0;"> <?php echo $count_products; ?> </span> <?php echo _clang(ADS_FOUND); ?> </p> </div> </div> <?php } ?> </div> </div> </div> </div> <?php } else { echo "<h1 style='font-size: 18px; margin-top: 4%;text-align: center;'>There is no record available for this User</h1>"; }
function forgot_password() { $this->load->helper('email'); //load email library $this->load->library('email'); $primary_email = $this->input->post('email'); $password = generate_password(); //$this->form_validation->set_rules('password', 'Password', 'trim|required|min_length[4]|max_length[32]'); $this->form_validation->set_rules('email', 'Email', 'trim|required'); $this->load->model('Admin_model'); if ($this->form_validation->run()) { $is_valid = $this->Admin_model->validate_email_front($primary_email); if ($is_valid) { $get_admin_detail = get_admin_detail(); //common helper function for admin detail $this->email->from($get_admin_detail['email'], $get_admin_detail['name']); $this->email->to($primary_email); $this->email->set_mailtype("html"); // $this->email->subject('Your New Password for knewdog!'); //bhushan changes // $username = $this->input->post('username'); // $subscription_date = date("Y-m-d"); // $formated_subscription_date = date("jS F, Y", strtotime($subscription_date)); $session_lang = $this->session->userdata('language_shortcode'); $replace = array('{password}'); $with = array("{$password}"); $utf = "utf-8"; $email_template_content = $this->email_template_model->get_email_template_by_id(13); // echo "<pre>";print_r($email_template_content);exit; if (isset($email_template_content[0]['description_' . $session_lang]) && !empty($email_template_content[0]['description_' . $session_lang])) { $this->email->subject($email_template_content[0]['subject_' . $session_lang]); $template_content = $email_template_content[0]['description_' . $session_lang]; $message = str_replace($replace, $with, $template_content); $content = "<html><meta charset='" . $utf . "'><body><div style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;'>{$message}</div></body></html>"; $this->email->message($content); } else { $this->email->subject($email_template_content[0]['subject_en']); $template_content = $email_template_content[0]['description_en']; $message = str_replace($replace, $with, $template_content); $content = "<html><meta charset='" . $utf . "'><body><div style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;'>{$message}</div></body></html>"; $this->email->message($content); } //end changes if (!$this->email->send()) { // show_error($this->email->print_debugger()); $msgadd = "<strong>Email not send </strong>"; //.$this->email->print_debugger(); $data['flash_message'] = TRUE; $this->session->set_flashdata('flash_class', 'alert-error'); $this->session->set_flashdata('flash_message', $msgadd); if ($redirect == 'home') { redirect('home'); } else { redirect('signup'); } } else { $data_to_store = array('password' => md5($password)); if ($this->Admin_model->update_password($primary_email, $data_to_store)) { $data['flash_message'] = TRUE; $this->session->set_flashdata('flash_class', 'alert-success'); $this->session->set_flashdata('flash_message', '<strong>' . _clang(WELL_DONE) . '</strong> ' . _clang(WE_SENT_YOU_PASSWORD) . ''); redirect('signup'); //redirect('kd2a2a0u1g4/user'.''); } else { $data['flash_message'] = TRUE; $this->session->set_flashdata('flash_class', 'alert-error'); $this->session->set_flashdata('flash_message', '<strong>' . _clang(OH_SNAP) . '</strong> ' . _clang(CHANGE_A_FEW_THINGS_UP) . ''); redirect('signup'); } } } else { $data['flash_message'] = TRUE; $this->session->set_flashdata('flash_class', 'alert-error'); $this->session->set_flashdata('flash_message', '<strong>ohh snap!</strong> Not Match your Email please Put correct email '); redirect('signin/forgot_password'); //$this->load->view('home_view', $data); } } $data['main_content'] = 'forgot_password_view'; $this->load->view('includes/template', $data); }
<?php } ?> <?php $this->load->library('facebook'); //$this->load->config('facebook'); //http://www.facebook.com/feeds/page.php?id=392611907527091&format=rss20&pubDate=LastModified //$fbApiGetPosts = $facebook->api('/me/feed?limit=5'); $data_rss_feed = $this->facebook->api('/392611907527091/feed?limit=3'); $rss_feed = $data_rss_feed['data']; ?> <aside class="widget"> <h3 class="widget-title"><?php echo _clang(FACEBOOK_NEWS); ?> </h3> <div class="widget_content"> <ul class="facebooknews"> <?php for ($i = 0; $i < count($rss_feed); $i++) { $post_id = explode("_", $rss_feed[$i]['id']); if (isset($rss_feed[$i]['message'])) { ?> <li> <a target="_blank" title="<?php echo $rss_feed[$i]['message']; ?> " href="https://www.facebook.com/knewdog/posts/<?php echo $post_id[1]; ?>
<?php if ($this->session->flashdata('validation_error_messages')) { echo $this->session->flashdata('validation_error_messages'); } echo validation_errors(); if ($this->session->flashdata('flash_message')) { echo '<div class="alert ' . $this->session->flashdata("flash_class") . '">'; echo '<a class="close" data-dismiss="alert">×</a>'; echo $this->session->flashdata("flash_message"); echo '</div>'; } ?> </div> <h4 class="choose_tit"><?php echo _clang(CHOOSE_METRO); ?> </h4> <div id="geoListings"> <div class="column"> <div class="geoBlock"> <?php for ($i = 0; $i < count($country_opt); $i++) { $county_id = 'country_' . $i; $country_sub_id = "inner_" . $i; ?> <h2 onclick="country_click(this);" id="<?php echo $county_id; ?> "><?php
return false;">Cancel</a>--> <span> <?php echo _clang(PRIVACY_AGREE_TEXT); ?> <a href="<?php echo site_url('term'); ?> "><?php echo _clang(TERMS); ?> </a> <?php $str = ""; if ($post_national_ads['category'] == 4 || $post_national_ads['category'] == 11) { $str = "and "; $str .= '<a href="' . site_url("privacy") . '"> "' . _clang(WRITE_ADD_PRIVACY) . '"</a>'; } echo $str; ?> .</span> </div> <?php } ?> </fieldset> <?php echo form_close(); ?> </div> </section> <script>
} ?> <li> <a style="color: #000;" href="<?php echo $link; ?> "><?php echo !empty($top_twenty_ads[$t]['category_name_' . Do_language::GetSessionLang()]) ? $top_twenty_ads[$t]['category_name_' . Do_language::GetSessionLang()] : $top_twenty_ads[$t]['category_name_en']; ?> </a> </li> <?php } } ?> </ul> </div> <div style="margin-bottom: 5%; margin-top: 14%;padding: 5%;"> <a style="color: #2a4e89;" href="<?php echo site_url(); ?> ad_type/index/multiple"><?php echo _clang(MULT_POST_CITY); ?> </a> </div> </div> </figure> </div> </section>
<li><a href="<?php echo base_url("home"); ?> ">StacksClassifieds.com</a>>></li> <li><a href="<?php echo base_url("ad_type"); ?> "><?php echo _clang(POST_AD); ?> </a></li> </ul> </div> <h1 class="usa_tit usuptit"><?php echo _clang(CATEGORIES); ?> </h1> <div class="sub"> <?php for ($i = 0; $i < count($cat); $i++) { echo '<div class="four formate_one"><ul>'; $my_cat_id = $cat[$i]['category_id']; if (!empty($post_city_id)) { $multiple = $post_city_id; } else { $multiple = $this->uri->segment(3); } $session_category = !empty($cat[$i]['category_name_' . Do_language::GetSessionLang()]) ? $cat[$i]['category_name_' . Do_language::GetSessionLang()] : $cat[$i]['category_name_en']; echo "<li><a href='" . base_url("choose_category/choosecatdata/" . $my_cat_id . "/" . $multiple . "/" . $name) . "'>" . $session_category . "</a>\n </li>"; echo '</ul></div>';
function contactus_data() { $this->load->library('form_validation'); $this->recaptcha->recaptcha_check_answer(); //echo "captch->".$this->recaptcha->getIsValid(); die; // field name, error message, validation rules //$this->form_validation->set_rules('email', 'Email Address', 'trim|required|valid_email'); $this->form_validation->set_rules('username', 'User name', 'trim|required'); $this->form_validation->set_rules('usermail', 'Email Address', 'trim|required|valid_email'); $this->form_validation->set_rules('usersite', 'usersite', 'trim'); $this->form_validation->set_rules('subject', 'subject', 'trim'); $this->form_validation->set_rules('message', 'message', 'trim|required'); //$this->form_validation->set_message('is_unique', 'The %s is already taken! Please choose another.'); $this->form_validation->set_error_delimiters('<div class="alert alert-error"><a class="close" data-dismiss="alert">×</a><strong>', '</strong></div>'); if ($this->input->post('redirect')) { $redirect = $this->input->post('redirect'); } else { $redirect = ''; } if ($this->form_validation->run() && $this->recaptcha->getIsValid()) { //$pass = generate_password(); $username = $this->input->post('username'); $usermail = $this->input->post('usermail'); $usersite = $this->input->post('usersite'); $subject = $this->input->post('subject'); $message = $this->input->post('message'); $user_rand_id = $this->functions->get_user_rand_id(); $data_to_store = array('user_rand_id' => $user_rand_id, 'username' => $this->input->post('username'), 'usermail' => $this->input->post('usermail'), 'usersite' => $this->input->post('usersite'), 'subject' => $this->input->post('subject'), 'message' => $this->input->post('message')); //captcha validation //print_r($array); die; $this->load->helper('email'); //load email library $this->load->library('email'); //read parameters from $_POST using input class // check is email addrress valid or no if (valid_email($usermail)) { // compose email $get_admin_detail = get_admin_detail(); //common helper function for admin detail $this->email->from($usermail); $this->email->to($get_admin_detail['email']); $this->email->set_mailtype("html"); //$mail_data['url'] = site_url().'home/confirm/'.base64url_encode($email); $mail_data['username'] = $this->input->post('username'); $mail_data['usermail'] = $this->input->post('usermail'); $mail_data['usersite'] = $this->input->post('usersite'); $mail_data['subject'] = $this->input->post('subject'); $mail_data['message'] = $this->input->post('message'); //bhushan changes $session_lang = $this->session->userdata('language_shortcode'); $replace = array('{user_name}', '{user_mail}', '{user_site}', '{user_message}', '{user_subject}'); $with = array("{$mail_data['username']}", "{$mail_data['usermail']}", "{$mail_data['usersite']}", "{$mail_data['subject']}", "{$mail_data['message']}"); $utf = "utf-8"; $email_template_content = $this->email_template_model->get_email_template_by_id(2); if (isset($email_template_content[0]['description_' . $session_lang]) && !empty($email_template_content[0]['description_' . $session_lang])) { $this->email->subject($email_template_content[0]['subject_' . $session_lang]); $contact_content = $email_template_content[0]['description_' . $session_lang]; $message = str_replace($replace, $with, $contact_content); $content = "<html> <meta charset='" . $utf . "'><body><div style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;'>{$message}</div></body></html>"; $this->email->message($content); } else { $this->email->subject($email_template_content[0]['subject_en']); $contact_content = $email_template_content[0]['description_en']; $message = str_replace($replace, $with, $contact_content); $content = "<html> <meta charset='" . $utf . "'><body><div style='font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;'>{$message}</div></body></html>"; $this->email->message($content); } //end changes // $message = $this->load->view('mail_templates/contactus_mail', $mail_data,true); // //echo $message; die; // $this->email->message($message); // try send mail ant if not able print debug if (!$this->email->send()) { $msgadd = "<strong>" . _clang(EMAIL_NOT_SENT) . " </strong>"; //.$this->email->print_debugger(); $data['flash_message'] = TRUE; $this->session->set_flashdata('flash_class', 'alert-error'); $this->session->set_flashdata('flash_message', $msgadd); if ($redirect == 'home') { redirect('home'); } else { redirect('contactus'); } } else { $data['flash_message'] = TRUE; $this->session->set_flashdata('flash_class', 'alert-success'); $this->session->set_flashdata('flash_message', '<strong>' . _clang(EMAIL_END) . '</strong>'); if ($redirect == 'home') { redirect('home'); } else { redirect('contactus'); } } } else { if ($redirect == 'home') { $this->session->set_flashdata('validation_error_messages', validation_errors()); redirect('home'); } } //redirect('contactus'); //redirect('kd2a2a0u1g4/keyword/update/'.$id.''); } else { if (!$this->recaptcha->getIsValid()) { $this->session->set_flashdata('flash_message', '' . _clang(INCORRECT_CAPTCHA) . ''); $this->session->set_flashdata('flash_class', 'alert-error'); } else { $this->session->set_flashdata('flash_message', '' . _clang(INCORRECT_CREDENTIALS) . ''); $this->session->set_flashdata('flash_class', 'alert-error'); } $this->session->set_flashdata('validation_error_messages', validation_errors()); redirect('contactus'); } //captcha validation over //echo $data_to_store['usermail']; die; //if the insert has returned true then we show the flash message $data['main_content'] = 'contactus_view'; $this->load->view('includes/template', $data); }
</div> </footer> <a href="javascript:void(0)" id="dynamic-to-top" style="display: inline;"><span> </span></a> <?php $this->session->set_flashdata('redirect_url', current_url()); include_once "popups.php"; ?> <div id="overlay_ajax"></div> <div style="display:none;" id="dialog-confirm" title="<?php echo _clang(CONFIRMATION); ?> "> <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span> <span id="ui-message"><?php echo _clang(UNSUSCRIBE_MSG); ?> </span></p> </div> <script src="<?php echo base_url(); ?> assets/js/bootstrap.min.js"></script> <script src="<?php echo base_url(); ?> assets/js/admin.min.js"></script> <script src="<?php echo base_url(); ?>
<input type="radio" id="" value="It’s not all it’s cracked up to be." name="ans"> <label>' . _clang(ITS_NOT_ALL_IT) . '</label> </label> <br> <label style="width:185px;"> <label for="ends_after1"> <input type="radio" value="tell_us" name="ans" id="ends1"> </label> <label>' . _clang(TELL_US_EVERYTHING) . ' </label> <label><input onclick="javascript:document.getElementById("ends1").checked;" type="text" placeholder="' . _clang(TELL_US_EVERYTHING) . '" style="width:182px !important;" name="tell_us" id="" class="occuranes"></label> </label> </p> </div> <div class="cancle_popup_btn"><input type="submit" class="btn btn_main" value="' . _clang(SUBMIT_BUTTON) . '" name="submit" /><span style="float:none; margin-left:20px;"><a class="popup_close" href="javascript:void(0);">' . _clang(I_DONT) . '</a></span></div> <form> </div> </div>'; } } } } } } } } } } } //$data_frame = urlencode($data_frame);
function getParentCommentList($parent_id = 0, $old_cat = "", $iCatIdNot = "0", $loop = 1, $par_cat_array = '', $child = false, $blog_id) { $ci =& get_instance(); $ci->load->model('comment_model'); $ci->load->model('user_model'); $cat_assoc_arr = getCommentDetails($blog_id); if (@is_array($cat_assoc_arr[$parent_id])) { foreach ($cat_assoc_arr[$parent_id] as $Pid => $db_cat_rs) { $field = "username"; $value = $db_cat_rs['name']; $user_d = $ci->user_model->get_user_by_filed($field, $value); $class = $Pid % 2 == 0 ? "odd" : "even"; if ($child == true) { $par_cat_array .= '<ul style="margin: 22px 0 0 8px;">'; } $par_cat_array .= '<li class="comment ' . $class . " " . $Pid . "_" . $db_cat_rs['comment_id'] . ' childof_' . $parent_id . '"> <div style="float: left; margin-right: 5px;" class="comment_avatar">'; if (@getimagesize(site_url('uploads/avatar') . "/" . $user_d[0]['avatar'])) { $par_cat_array .= '<img title="' . $db_cat_rs['name'] . '" width="25" style="width:40px; height:40px;" src="' . site_url('uploads/avatar') . "/" . $user_d[0]['avatar'] . '" />'; } else { $par_cat_array .= '<img title="' . $db_cat_rs['name'] . '" style="width:40px; height:40px;" src="' . site_url('assets/img/avatarpic.png') . '" />'; } $par_cat_array .= '</div> <div class="aut">' . $db_cat_rs['name'] . '</div> <div class="comment-body">' . $db_cat_rs['comment'] . '</div> <div class="timestamp"><a style="margin:6px" class="cmt_value" href="javascript:void(0)" onclick="javascript:reply_comment(this, ' . $db_cat_rs['comment_id'] . ');" id="rply_comment">' . _clang(REPLY) . '</a></div> <div class="timestamp">' . _clang(COMMENTED) . " " . date('j, F Y', strtotime($db_cat_rs['date'])) . ' </div>'; //echo "<br>".$Pid."->".$par_cat_array; $par_cat_array = getParentCommentList($db_cat_rs['comment_id'], $old_cat, $iCatIdNot, $loop + 1, $par_cat_array, true, $blog_id); $par_cat_array .= '</li>'; if ($child == true) { $par_cat_array .= "</ul>"; } } } $old_cat = ""; return $par_cat_array; }
<?php echo _clang(PAYMENT_AMOUNT); ?> $<input name="x_amount" value="<?php echo $auto_repost; ?> " type="text" readonly> <input type="hidden" name="posts_id" value="<?php echo $posts_id; ?> "> <input type="hidden" name="amt" value="<?php echo $amt; ?> "> <input type="submit" class="btn_mult" value="Pay Now"> <?php echo form_close(); ?> <hr> <label><?php echo _clang(CANCLE_AND_RETURN); ?> <a href="#" onclick="history.go(-1); return false;"> click here </a> <!-- <a class="btn_mult" href='javascript:history.go(-1)'>click here</a>--> </div> </section>
?> :</label><?php echo _clang(YOUR_ACCOUNT); ?> </div> <?php if (in_array($this->session->userdata('type_of_membership'), array('FREE', 'PRE1', 'PRE2'))) { ?> <div><label><?php echo _clang(CANCEL_ACCOUNT); ?> :</label><a onclick="popups_ajax('cancle_account', '<?php echo $this->session->userdata('type_of_membership'); ?> ')" href="javascript:void(0);"><?php echo _clang(PLS_CLICK); ?> </a></div> <?php } ?> </div> </div> </section> </div> </section> <?php include_once "includes/sidebars/myknewdog_sidebar.php"; ?>
function cancle_account() { $user_id = $this->session->userdata("user_id"); $type_of_membership = $this->session->userdata("type_of_membership"); if ($type_of_membership == 'FREE') { //Delete user $this->user_model->delete_user($user_id); //$this->session->set_flashdata('flash_mynl_tab', 'tab_4'); //Delete all schedule $this->schedule_model->delete_schedule_with_userid($user_id); //delete all subscribe $this->subscribe_model->delete_subscribe_with_userid($user_id); //delete Newsletter review with process $get_newsletter_ids = $this->newsletter_model->get_newsletter_review('', '', '', '', '', '', array("join_user_id"), array($user_id)); $this->newsletter_model->delete_newsletter_review_with_userid($user_id); for ($i = 0; $i < count($get_newsletter_ids); $i++) { $avg_rate = get_average_rate($get_newsletter_ids[$i]['join_newsletter_id']); $rate = array("ratings" => $avg_rate["avg_round"]); //add average rate $this->newsletter_model->update_newsletter($get_newsletter_ids[$i]['join_newsletter_id'], $rate); } //Delete additional email $this->additional_email_model->delete_additional_email_by_userid($user_id); //Delete Invoice $this->invoice_model->delete_invoice_by_userid($user_id); //Loged out if ($this->session->userdata('is_logged_in')) { $reuired_sessiondata = array('session_id' => $this->session->userdata('session_id'), 'ip_address' => $this->session->userdata('ip_address'), 'user_agent' => $this->session->userdata('user_agent'), 'last_activity' => $this->session->userdata('last_activity'), 'language_shortcode' => $this->session->userdata('language_shortcode')); $array_items = array('username' => '', 'user_id' => '', 'type_of_membership' => '', 'is_logged_in' => false); $this->session->unset_userdata($array_items); //$this->session->sess_destroy(); //set session required $this->session->set_userdata($reuired_sessiondata); $this->session->set_flashdata('flash_message', '<strong>' . _clang(WELL_DONE_YOUR_PROFILE) . '</strong>'); $this->session->set_flashdata('flash_class', 'alert-success'); redirect('home'); } } else { if ($type_of_membership == 'PRE1') { $array = array("type_of_membership" => 'FREE'); if (@$this->user_model->update_user($user_id, $array) == TRUE) { $this->session->set_flashdata('flash_message', '<strong>' . _clang(YOUR_PROFILE_RESET_TO) . '</strong>'); $this->session->set_flashdata('flash_class', 'alert-success'); $this->session->set_flashdata('flash_mynl_tab', 'tab_4'); //Delete all schedule $this->schedule_model->delete_schedule_with_userid($user_id); //delete all subscribe $this->subscribe_model->delete_subscribe_with_userid($user_id); //Moved to free user if ($this->session->userdata('is_logged_in')) { $this->session->unset_userdata(array('type_of_membership' => '')); $session = array('type_of_membership' => 'FREE'); $this->session->set_userdata($session); } } else { $this->session->set_flashdata('flash_message', '<strong>' . _clang(OOPS_SOMETHING_WENT_WRONG) . '</strong>'); $this->session->set_flashdata('flash_class', 'alert-error'); $this->session->set_flashdata('flash_mynl_tab', 'tab_4'); } } else { if ($type_of_membership == 'PRE2') { $array = array("type_of_membership" => 'FREE'); if (@$this->user_model->update_user($user_id, $array) == TRUE) { $this->session->set_flashdata('flash_message', '<strong>' . _clang(YOUR_PROFILE_RESET_TO) . '</strong>'); $this->session->set_flashdata('flash_class', 'alert-success'); $this->session->set_flashdata('flash_mynl_tab', 'tab_4'); //Delete all schedule $this->schedule_model->delete_schedule_with_userid($user_id); //delete all subscribe $this->subscribe_model->delete_subscribe_with_userid($user_id); //Moved to free user if ($this->session->userdata('is_logged_in')) { $this->session->unset_userdata(array('type_of_membership' => '')); $session = array('type_of_membership' => 'FREE'); $this->session->set_userdata($session); } } else { $this->session->set_flashdata('flash_message', '<strong>' . _clang(OOPS_SOMETHING_WENT_WRONG) . '</strong>'); $this->session->set_flashdata('flash_class', 'alert-error'); $this->session->set_flashdata('flash_mynl_tab', 'tab_4'); } } } } redirect('myknewdog'); }
?> </td> <td class="<?php echo $tableeven; ?> "><a target="_blank" href="<?php echo site_url('myknewdog/invoicepdf/' . $invoice[$i]['invoice_id']); ?> "><?php echo _clang(VIEW); ?> </a></td> </tr> <?php } } else { ?> <tr> <td colspan="8" style="text-align:center; line-height:80px; font-weight:bold;"><?php echo _clang(NO_INVOICE); ?> </td> </tr> <?php } ?> </table> </div> </section> </main>
<textarea class="tinymce ckeditor" id="editor" name="description"></textarea> </div> </div>--> <div class="control-group bottom_space"> <div class="controls left_r"> <div class="comment_recaptcha_one"><?php echo $recaptcha_html; ?> </div> </div> </div> <div class="form-actions_new"> <button class="btn_mult" type="submit"><?php echo _clang(SUBMIT_REPORT); ?> </button> </div> </fieldset> <?php echo form_close(); ?> </div> </section>
/** * Update item by his id * @return void */ public function edit() { //if save button was clicked, get the data sent via post if ($this->input->server('REQUEST_METHOD') === 'POST') { //form validation //$this->form_validation->set_rules('keyword_define', 'keyword define', 'required|is_unique[newsletter_keyword.keyword_define]'); //$this->form_validation->set_rules('en', 'Keyword for English', 'required'); //$this->form_validation->set_error_delimiters('<div class="alert alert-error"><a class="close" data-dismiss="alert">×</a><strong>', '</strong></div>'); $s_newsletter_id = $this->input->post('s_newsletter_id'); $s_user_id = $this->input->post('s_user_id'); //if the form has passed through the validation $data_to_store = array('schedule_id' => $this->input->post('schedule_id')); //if the insert has returned true then we show the flash message $s_sub_field = array("s_newsletter_id", "s_user_id"); $s_sub_value = array($s_newsletter_id, $s_user_id); if ($this->subscribe_model->update_subscribe_with_user_id_nl_id($s_sub_field, $s_sub_value, $data_to_store)) { $this->session->set_flashdata('flash_message', _clang(YOUR_SUBSCRIPTION_UPDATED)); $this->session->set_flashdata('flash_class', 'alert-success'); $this->session->set_flashdata('flash_mynl_tab', 'tab_2'); } else { $this->session->set_flashdata('flash_message', _clang(OOPS_SOMTHING_WENT_WRONG)); $this->session->set_flashdata('flash_class', 'alert-error'); $this->session->set_flashdata('flash_mynl_tab', 'tab_2'); } redirect("newsletter"); //print_r($data) //$data['main_content'] = 'kd2a2a0u1g4/newsletter_keyword/list'; //$this->load->view('kd2a2a0u1g4/includes/template', $data); //$this->session->set_flashdata('flash_message',$data); } $this->session->set_flashdata('flash_message', _clang(OOPS_SOMTHING_WENT_WRONG)); $this->session->set_flashdata('flash_class', 'alert-error'); $this->session->set_flashdata('flash_mynl_tab', 'tab_2'); redirect("newsletter"); }
</h3> </div> <div style="margin:2% 0 4px 0;"> <a class="link_btn" href="<?php echo base_url("reply/email_reply/{$posts_id}/{$parent_id}"); ?> "><?php echo _clang(REPLY); ?> </a> </div> <div class='img_full' style="margin:1% 0 4px 0;"> <a href="#" onclick="history.go(-1); return false;"> <?php echo _clang(BACK_TO_AD); ?> </a> <!--<a href=" <?php //echo base_url("post_detail/getPostdetails/$posts_id/$parent_id/$id") ?> "><?php //echo _clang(BACK_TO_AD); ?> </a>--> </div> <div style="clear:both"></div> </div> </section>
<li><?php echo _clang(GET_ALL_YOUR); ?> </li> <li><?php echo _clang(CHOOSE_DATE); ?> </li> <li><?php echo _clang(SELECT_INDIVIDUAL); ?> </li> <li><?php echo _clang(THE_FEEDBACK); ?> </li> <li><?php echo _clang(QUICK_AND_EASY); ?> </li> <li><?php echo _clang(COMPANY_ACCOUNTS); ?> </li> </ul> <hr> </article> </section> </section> </main>
<a style="text-decoration:underline; font-size:11px !important; color:#808080 !important;" href="<?php echo site_url('legal'); ?> "><?php echo _clang(TERM_OF_USE); ?> </a> <?php echo _clang(APPLY_BY); ?> </p> <p class="flpayment">* <?php echo _clang(YOU_CAN_CANCEL); ?> <?php echo _clang(IF_YOU_CANCEL); ?> </p> </div> </section> <?php include_once "includes/sidebars/myknewdog_sidebar.php"; ?> </section> <script type ="text/javascript"> function display_compare() { if ($(".section_compare").is(':hidden')) { //$(".section_compare").css("display","block") $(".section_compare").fadeIn();