当前位置: 首页>>代码示例>>PHP>>正文


PHP _clang函数代码示例

本文整理汇总了PHP中_clang函数的典型用法代码示例。如果您正苦于以下问题:PHP _clang函数的具体用法?PHP _clang怎么用?PHP _clang使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了_clang函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: site_url

                        </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>
开发者ID:bhushansonar,项目名称:knewdog.com,代码行数:31,代码来源:checkout_view.php

示例2: _clang

?>
  <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>
开发者ID:bhushansonar,项目名称:knewdog.com,代码行数:31,代码来源:contactus_view.php

示例3: _clang

            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">
开发者ID:bhushansonar,项目名称:knewdog.com,代码行数:31,代码来源:newsletter_specific_view.php

示例4: contactus_data

 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">&#215;</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) . '');
//.........这里部分代码省略.........
开发者ID:bhushansonar,项目名称:knewdog.com,代码行数:101,代码来源:error.php

示例5: base_url

        ?>
                                <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'];
        ?>
开发者ID:hardikamutech,项目名称:stacksclassifieds,代码行数:31,代码来源:searching_content_by_category_view.php

示例6: get_instance

                                    </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>
开发者ID:hardikamutech,项目名称:stacksclassifieds,代码行数:30,代码来源:header.php

示例7: _clang

                        </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>
开发者ID:bhushansonar,项目名称:knewdog.com,代码行数:31,代码来源:newsletter_view_8_8_2014_b.php

示例8: _clang

"><?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();
开发者ID:hardikamutech,项目名称:stacksclassifieds,代码行数:31,代码来源:footer.php

示例9: 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>
开发者ID:hardikamutech,项目名称:stacksclassifieds,代码行数:31,代码来源:ad_type_view.php

示例10: _clang

            <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>

开发者ID:hardikamutech,项目名称:stacksclassifieds,代码行数:29,代码来源:delete_ad_view.php

示例11: current_url

    $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>";
}
开发者ID:hardikamutech,项目名称:stacksclassifieds,代码行数:31,代码来源:manage_account_view.php

示例12: forgot_password

 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);
 }
开发者ID:bhushansonar,项目名称:knewdog.com,代码行数:81,代码来源:signin.php

示例13: _clang

 	<?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];
        ?>
开发者ID:bhushansonar,项目名称:knewdog.com,代码行数:31,代码来源:blog_sidebar.php

示例14: validation_errors

            <?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">&#215;</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 
开发者ID:hardikamutech,项目名称:stacksclassifieds,代码行数:31,代码来源:home_view.php

示例15: _clang

                                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>
开发者ID:bhushansonar,项目名称:stacksclassifieds_language,代码行数:31,代码来源:post_national_ads_edit_view.php


注:本文中的_clang函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。