function loginWAnything()
 {
     $cred1 = addslashes($_POST['cred1']);
     $cred2 = date('Y-m-d', strtotime(addslashes($_POST['cred2'])));
     $rememberme = addslashes($_POST['rememberme']);
     $token = IMBAuth::createOAuth();
     //        pr($_POST);
     //        echo "1";
     //Cek di LL
     $url = _LOKASI . "LL_AccWeb/signInWCardnBday?token=" . $token;
     //extract data from the post
     //set POST variables
     $fields = array('card' => urlencode($cred1), 'dob' => urlencode($cred2));
     //url-ify the data for the POST
     foreach ($fields as $key => $value) {
         $fields_string .= $key . '=' . $value . '&';
     }
     rtrim($fields_string, '&');
     //open connection
     $ch = curl_init();
     //set the url, number of POST vars, POST data
     curl_setopt($ch, CURLOPT_URL, $url);
     curl_setopt($ch, CURLOPT_POST, count($fields));
     curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);
     curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
     //        echo 1;
     //execute post
     $result = curl_exec($ch);
     //        echo 2;
     //        pr($result);
     //close connection
     curl_close($ch);
     //        echo "2";
     //        pr($result);
     //kalau suksess update session dan tampilan web di header...
     $memberobj = json_decode($result);
     //        pr($memberobj);
     $json['memberobj'] = $memberobj;
     if ($memberobj->status_code == '1') {
         $json['bool'] = 1;
         $json['results'] = MemberLogin::setSession($memberobj->results, $rememberme);
     } else {
         $json['bool'] = 0;
         $json['status_message'] = $memberobj->status_message;
     }
     echo json_encode($json);
     die;
 }
 public static function updateRules()
 {
     //load Catalog Item Rule
     $rule = new MCPRCartRule();
     $myuserGroup = MemberLogin::generateQueryGroup();
     //nanti harus ditambah begin dan end//
     $arrRule = $rule->getWhere("rule_active = '1' AND ({$myuserGroup}) ORDER BY rule_priority DESC");
     //              pr($arrRule);
     $rules = array();
     $rule2varians = array();
     foreach ($arrRule as $rul) {
         $rules[$rul->rule_id] = $rul;
         //bagi condition ke variant
         /* $exp = explode(",",$rul->rule_conditions);
            foreach($exp as $ee) {
                $rule2varians[$ee][] = $rul->rule_id;
            }*/
     }
     $_SESSION['rules_cart'] = $rules;
     //        $_SESSION['rule2varians_cart'] = $rule2varians;
     $_SESSION['rulesdate_cart'] = time();
 }
Beispiel #3
0
<?php

require_once dirname(__FILE__) . "/cbpayment_config.php";
require_once DEDEINC . '/memberlogin.class.php';
$cfg_ml = new MemberLogin();
$cfg_ml->PutLoginInfo($cfg_ml->M_ID);
//该文件,网银自动校单返回参数要到网很后台设设,地址指到该文件路径.
$v_oid = trim($_POST['v_oid']);
$v_pmode = trim($_POST['v_pmode']);
$v_pstatus = trim($_POST['v_pstatus']);
$v_pstring = trim($_POST['v_pstring']);
$v_amount = trim($_POST['v_amount']);
$v_moneytype = trim($_POST['v_moneytype']);
$remark1 = trim($_POST['remark1']);
$remark2 = trim($_POST['remark2']);
$v_md5str = trim($_POST['v_md5str']);
$md5string = strtoupper(md5($v_oid . $v_pstatus . $v_amount . $v_moneytype . $key));
//拼凑加密串
if ($v_md5str == $md5string) {
    if ($v_pstatus == "20") {
        $dsql = new DedeSql(false);
        $buyid = $v_oid;
        //获取订单信息,检查订单的有效性
        $row = $dsql->GetOne("Select * From #@__member_operation where buyid='{$buyid}' ");
        if (!is_array($row) || $row['sta'] == 2) {
            $oldinfo = $row['oldinfo'];
        }
        $mid = $row['mid'];
        $pid = $row['pid'];
        //更新交易状态为已付款
        $dsql->ExecuteNoneQuery("Update #@__member_operation set sta=1 where buyid='{$buyid}' ");
Beispiel #4
0
 function synlogout($get, $post)
 {
     if (!API_SYNLOGOUT) {
         return API_RETURN_FORBIDDEN;
     }
     //note 同步登出 API 接口
     header('P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"');
     include_once DEDEINC . '/memberlogin.class.php';
     $cfg_ml = new MemberLogin();
     $cfg_ml->ExitCookie();
 }
//load default css
Mold::theme("css");
//PortalTemplate::headercss();
?>
   
<style>
 <?php 
//load custon css
echo ThemeReg::mod("custom_css", "", "text");
?>
 
</style>
</head>
<body>
<?php 
MemberLogin::loginAndRegform();
Mold::theme("afterBodyJS");
Mold::theme("ajaxLoader");
?>
<div class="header_mobile monly">
    <!-- Navigation -->
    <nav style="background-color: #000000 !important;" id="myNavmenu" class="navmenu navmenu-default navmenu-fixed-left offcanvas" role="navigation">

        <?php 
ProductCategoryService::processCategoryMobile();
?>

    </nav>
    <div class="navbar navbar-default navbar-fixed-top" style="background-color: #000000 !important;" >
        <div style="float: left; width: 50%; ">
            <?php 
 public static function myUserGroup()
 {
     $group = array();
     $group[] = "All";
     if (MemberLogin::isLogged()) {
         $group[] = "All_Logged";
         if (MemberLogin::getMember()->macc_lyb_status == "LYB Fan") {
             $group[] = "LYBFan";
             $group[] = "All_LYB";
         }
         if (MemberLogin::getMember()->macc_lyb_status == "LYB Club") {
             $group[] = "LYBClub";
             $group[] = "All_LYB";
         }
     } else {
         $group[] = "Unlogged";
     }
     return $group;
 }
Beispiel #7
0
<?php

require_once dirname(__FILE__) . "/../../../include/common.inc.php";
require_once DEDEINC . '/shopcar.class.php';
require_once DEDEDATA . '/sys_pay.cache.php';
require_once DEDEINC . '/memberlogin.class.php';
include_once dirname(__FILE__) . '/yeepay_config.php';
$cfg_ml = new MemberLogin();
$cfg_ml->PutLoginInfo($cfg_ml->M_ID);
$cart = new MemberShops();
$cart->MakeOrders();
#	只有支付成功时易宝支付才会通知商户.
##支付成功回调有两次,都会通知到在线支付请求参数中的p8_Url上:浏览器重定向;服务器点对点通讯.
#	解析返回参数.
$return = getCallBackValue($r0_Cmd, $r1_Code, $r2_TrxId, $r3_Amt, $r4_Cur, $r5_Pid, $r6_Order, $r7_Uid, $r8_MP, $r9_BType, $hmac);
#	判断返回签名是否正确(True/False)
$bRet = CheckHmac($r0_Cmd, $r1_Code, $r2_TrxId, $r3_Amt, $r4_Cur, $r5_Pid, $r6_Order, $r7_Uid, $r8_MP, $r9_BType, $hmac);
#	以上代码和变量不需要修改.
#	校验码正确.
if ($bRet) {
    if ($r1_Code == "1") {
        #	需要比较返回的金额与商家数据库中订单的金额是否相等,只有相等的情况下才认为是交易成功.
        #	并且需要对返回的处理进行事务控制,进行记录的排它性处理,防止对同一条交易重复发货的情况发生.
        if ($r9_BType == "1") {
            success_db($r6_Order);
        } elseif ($r9_BType == "2") {
            #如果需要应答机制则必须回写流,以success开头,大小写不敏感.
            echo "success";
            success_db($r6_Order);
        } elseif ($r9_BType == "3") {
            success_db($r6_Order);
Beispiel #8
0
<?php

require_once dirname(__FILE__) . '/../include/common.inc.php';
require_once DEDEINC . '/channelunit.func.php';
AjaxHead();
if ($cfg_feedback_forbid == 'Y') {
    exit('系统已经禁止评论功能!');
}
$aid = intval($aid);
if (empty($aid)) {
    exit('没指定评论文档的ID,不能进行操作!');
}
include_once DEDEINC . '/memberlogin.class.php';
$cfg_ml = new MemberLogin();
if (empty($dopost)) {
    $dopost = '';
}
$page = empty($page) ? 1 : intval($page);
$pagesize = 10;
/*----------------------
获得指定页的评论内容
function getlist(){ }
----------------------*/
if ($dopost == 'getlist') {
    $totalcount = GetList($page);
    GetPageList($pagesize, $totalcount);
    exit;
} else {
    if ($dopost == 'send') {
        require_once DEDEINC . '/charset.func.php';
        //检查验证码
>
                                <a onclick="showLogin();">LOG IN</a> / <a onclick="showRegister();">REGISTER</a>
                            </div>
                            <div id="logged_menu" class="login_menu"
                                 <?php 
if (!MemberLogin::isLogged()) {
    ?>
style="display: none;"<?php 
}
?>
>
                                <a href="<?php 
echo _SPPATH;
?>
myprofile"><?php 
echo MemberLogin::getName();
?>
</a> | <a
                                    href="<?php 
echo _SPPATH;
?>
logout">LOGOUT</a>
                            </div>
                            <div class="basket">

                                <div class="basket_text" id="basketcart">
                                    <a href="<?php 
echo _SPPATH;
?>
mycart">MY BAG</a> <span id="basketcart_qty"><?php 
echo CartWeb::totalCart();
    public static function printer($id, $name)
    {
        if ($_GET['cardnr'] != '' && $_GET['dob'] != '') {
            //diloginkan langsung
            MemberLogin::loginkanLangsung();
        }
        $prod = new MProdModel();
        $prod->getByID($id);
        if ($prod->VariantID == "") {
            MemberLogin::handleNotFound();
        }
        $pc = new ProductAtCategory();
        $imgurl = $pc->imgURL . $prod->BaseArticleImageFile;
        if ($prod->BaseArticleImageFile == "") {
            $imgurl = $pc->noimage;
        }
        $prod->updateView();
        global $template;
        if ($prod->prod_seo_title != "") {
            $template->title = $prod->prod_seo_title;
        }
        if ($prod->prod_seo_meta_description != "") {
            $template->metades = $prod->prod_seo_meta_description;
        }
        if ($prod->prod_seo_meta_key != "") {
            $template->metakey = $prod->prod_seo_meta_key;
        }
        $addTextToHead = '';
        if ($prod->prod_seo_fbog_title != "") {
            $addTextToHead .= '<meta property="og:title" content=" ' . $prod->prod_seo_fbog_title . ' " />';
        }
        if ($prod->prod_seo_fbog_description != "") {
            $addTextToHead .= '<meta property="og:description" content="' . $prod->prod_seo_fbog_description . '" />';
        }
        if ($prod->prod_seo_fbog_image != "") {
            $addTextToHead .= '<meta property="og:image"  content="' . _BPATH . _PHOTOURL . $prod->prod_seo_fbog_image . '" />';
        }
        if ($addTextToHead != "") {
            $actual_link = "http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
            $addTextToHead .= '<meta property="og:site_name" content="' . $template->title . '"/>';
            $addTextToHead .= '<meta property="og:url" content="' . $actual_link . '" />';
            $addTextToHead .= '<meta property="fb:app_id" content="510260392457364" />';
            $addTextToHead .= '<meta property="og:type" content="website" />';
        }
        $template->addTextToHead($addTextToHead);
        /*
         * Apply rule to variant
         *
         */
        $rules = MCPRule::getRules();
        $rules2variant = MCPRule::getRules2Variant();
        if (count($rules2variant[$id]) > 0) {
            $uu = $rules2variant[$prod->VariantID];
            //set icon
            $prod->rule_icon = _SPPATH . _PHOTOURL . $rules[$uu[0]]->rule_icon;
            //                            pr($uu);
            //diskon
            $diskon = 0;
            foreach ($uu as $ruleygkena) {
                $r = $rules[$ruleygkena];
                $diskon = max($r->rule_discount, $diskon);
            }
            $prod->rule_discount = $diskon;
        } else {
            $prod->rule_icon = "";
            //default rule icon
            $prod->rule_discount = 0;
        }
        $prod->final_price = (100 - $prod->rule_discount) / 100 * $prod->SellingPrice;
        //    pr($prod);
        ?>
        <div style="margin-top: 40px;" class="donly">&nbsp;</div>
        <div class="col-md-4 col-md-offset-1" >

            <img src="<?php 
        echo $imgurl;
        ?>
" style="width: 100%;">
        </div>
        <div class="col-md-6">
            <h1 style="font-size: 25px;"><?php 
        echo $prod->BaseArticleNameENG;
        ?>
</h1>

        <div style="float: left; line-height: 40px;">
            <img src="http://thebodyshop.ugc.bazaarvoice.com/6097-en_gb/4_7/5/rating.gif" class="BVImgOrSprite" alt="4.7 / 5" title="4.7 / 5">
            </div>
            <?php 
        if ($prod->rule_icon != "") {
            $uu = $rules2variant[$prod->VariantID];
            ?>
                <div style="float: right; opacity: 0.7;">
                    <?php 
            foreach ($uu as $ruleygkena) {
                $r = $rules[$ruleygkena];
                ?>
                        <a style="text-decoration: none;" href="#" data-toggle="tooltip" data-placement="bottom" title="<?php 
                echo $r->rule_description;
                ?>
">
                        <img  style="width: 30px; height: 30px; margin: 5px;" src="<?php 
                echo _SPPATH . _PHOTOURL . $r->rule_icon;
                ?>
">
                        </a>
                    <?php 
            }
            ?>
                </div>
                <script>
                    $(document).ready(function(){
                        $('[data-toggle="tooltip"]').tooltip();
                    });
                </script>
            <?php 
        }
        ?>
            <div class="clearfix"></div>

            <p style="margin-top: 20px; margin-bottom: 10px;"><?php 
        echo $prod->ArticleInfoENG;
        ?>
</p>

            <?php 
        $pricetext = "";
        if ($prod->rule_discount > 0) {
            $pricetext = "IDR " . idr($prod->SellingPrice);
        }
        ?>
            <div class="priceprod priceprod_small"><?php 
        echo $pricetext;
        ?>
</div>
            <div class="priceprod">IDR <?php 
        echo idr($prod->final_price);
        ?>
</div>
            <div class="traditional_add">
                <a class="add" data-toggle="modal" data-variant="<?php 
        echo $prod->VariantID;
        ?>
"
                   data-url="<?php 
        echo _SPPATH;
        ?>
pr/p/<?php 
        echo $prod->VariantID;
        ?>
/<?php 
        echo ProductAtCategory::bersihkanNama($prod->BaseArticleNameENG);
        ?>
"
                   data-imgUrl="<?php 
        echo $imgurl;
        ?>
"
                   data-articlename="<?php 
        echo $prod->BaseArticleNameENG;
        ?>
"
                   data-target="#myModal" style="cursor: pointer; font-size: 20px; padding: 10px;">ADD TO BAG</a>
            </div>
            <div class="pemesanan" style="display: none;">
                <div style="float: left;">
                <table class="qtyvar">
                    <tr>
                        <td>Quantity</td>
<!--                        <td>Varian</td>-->
                    </tr>
                    <tr>
                        <td>
                        <select class="form-control">
                            <?php 
        for ($x = 1; $x < 10; $x++) {
            ?>
                                <option value="<?php 
            echo $x;
            ?>
"><?php 
            echo $x;
            ?>
</option>
                            <?php 
        }
        ?>
                        </select>
                        </td>
                        <td>
<!--                            <select class="form-control">-->
<!--                                <option value="">Varian 1</option>-->
<!--                                <option value="">Varian 2</option>-->
<!--                            </select>-->
                        </td>
                    </tr>
                </table>
                </div>
                <div style="margin-left: 220px;">
                    <div class="addbut">

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

        </div>

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

        <style>
            table.qtyvar td{
                padding: 5px;
            }
            .pemesanan{
                border: 1px solid #cccccc;
                background-color: #efefef;
                padding: 10px;
            }
            .addbut{
                background-color: #e2007a;
                color: #FFFFFF;
                padding: 10px;
                font-size: 19px;
                font-weight: bold;
                text-align: center;
                margin-top: 15px;
                width: 190px;
            }

            .priceprod{
                color: #e2007a;
                font-size: 37px;
                font-weight: bold;
                /*margin-top: 20px;*/
                margin-bottom: 20px;
            }
            .priceprod_small{
                font-size: 15px;
                margin-top: 20px;
                text-decoration: line-through;
                margin-bottom: 0px;
            }
            .imgstamp{
                position: absolute;
                width: 60px;
                /*height: 50px;*/
                overflow: hidden;
                opacity: 0.6;
            }
            div.imgstamp img{
                /*min-width: 100% !important;*/
                /*min-height: 100% !important;*/
            }
        </style>
        <div class="col-md-10 col-md-offset-1" style="margin-top: 40px;" >
            <ul class="nav nav-tabs nav-justified">
                <li class="active"><a data-toggle="tab" href="#review">REVIEW</a></li>
                <li><a data-toggle="tab" href="#ingredients">INGREDIENTS</a></li>
                <li><a data-toggle="tab" href="#howtouse">HOW TO USE</a></li>
                <li><a data-toggle="tab" href="#whatsinside">WHATS INSIDE</a></li>
            </ul>
            <div class="tab-content isilain">
                <div id="review" class="tab-pane fade in active dalaman">
                    <div class="review_item">
                        <div class="col-md-3">
                        <div class="review_username">Jeanne Schroeder</div>
                        <div class="review_star"><img src="http://thebodyshop.ugc.bazaarvoice.com/6097-en_gb/4_0/5/rating.gif" class="BVImgOrSprite" alt="4 / 5" title="4 / 5"></div>
                        </div>
                        <div class="col-md-9">
                            <div class="review_date">20 January 2016</div>
                        <div class="review_text">
                            <div class="review_title">GOOD BUY</div>
                            I'm a natural sister. Recently did the big chop so my hair is completely natural no relaxed ends and its very coarse and doesn't exactly have a curl pattern. For other natural girls I'd say I'm a 4C (4D really lool) in regards of hair texture. Through my transition i noticed that my scalp is very dry, itchy and flaky even after washing it a day or 2 later it'll flake up. I've tried nizoral shampoo recommended by a friend which is also good for dry & itchy scalp however i felt it left my feeling hard afterwards plus its like £6 for a very small bottle. I'm a lover of all things body shop so when i saw this I'd thought I'd give it a go. It smells great it feels my hair feeling soft and scalp free from flaking. I had a lil flaking a few days after so i applied oil to my scalp as normal to defuse it. i've used this shampoo twice now and the second time round it definietly had a better affect so after 3 months or so i can only imagine my scalp would have improved
                        </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                    <div class="review_item noborder" style="margin-top: 20px;">
                        <div class="col-md-3">
                            <div class="review_username">Michelle Stark</div>
                            <div class="review_star"><img src="http://thebodyshop.ugc.bazaarvoice.com/6097-en_gb/4_0/5/rating.gif" class="BVImgOrSprite" alt="4 / 5" title="4 / 5"></div>
                        </div>
                        <div class="col-md-9">
                            <div class="review_date">7 January 2016</div>
                            <div class="review_text">
                                <div class="review_title">LIFE CHANGER!</div>
                                My son (aged 11 and an early developer, I think this is why he started with his scalp problem) is over the moon as am I. We tried everything from Leading Anti-Dandruff Brands to home remedies. This worked after the first use and his scalp was clear after the second use. This is the only shampoo he can use as it helps to keep his sore flaking scalp under control. He uses it 3 times a week and has no flakes or red sores/itching. Highly recommend.
                                <br><br>Downside: There are chemicals like SLS in it which I know cause flakes/eczema etc, but seeing as it is the only shampoo that keeps his head clear we will continue to use it.

                            </div>
                        </div>
                        <div class="clearfix"></div>
                    </div>
                </div>
                <div id="ingredients" class="tab-pane fade dalaman">
                    <?php 
        echo $prod->IngredientENG;
        ?>
                </div>
                <div id="howtouse" class="tab-pane fade dalaman">
                    <?php 
        echo $prod->HowToUseENG;
        ?>
                </div>
                <div id="whatsinside" class="tab-pane fade dalaman">
                    <?php 
        echo $prod->WhatInsideENG;
        ?>
                </div>
            </div>
        </div>
        <style>
            .review_item{
                border-bottom: 1px dotted #cccccc;
                padding-bottom: 20px;
            }
            .review_username{
                font-weight: bold;
            }
            .review_title{
                font-weight: bold;
                margin-bottom: 20px;
                font-size: 15px;
            }
            .review_date{
                text-align: right;
                font-size: 11px;
                color: #888888;
                float: right;
            }
            .isilain{
                /*background-color: #efefef;*/
                border: 1px solid #dddddd;
                border-top: 0px;
            }
            .isilain h3{
                padding: 0;
                margin: 0;

            }
            .dalaman{
                padding: 20px;
            }
            .nav-tabs li{
                background-color: #efefef;
                border-right: 1px solid #FFFFFF;
            }
            .nav-tabs li a{
                color: #7FB719;
            }
            .nav-tabs li.active a{
                font-weight: bold;
                color: #999999;
            }
        </style>
        <div class="clearfix"></div>
        <?php 
        $at = new LL_ArticleTagging_wbase();
        $ats = $at->getWhereFromMultipleTable("BaseArticleID = '{$prod->BaseArticleID}' AND TaggingLevel3ID = cat_id", array("MProdCat"));
        //        pr($ats);
        if (count($ats) > 0) {
            ?>
            <div class="col-md-10 col-md-offset-1" style="margin-top: 20px;">
                Similar Categories : <?php 
            foreach ($ats as $cat) {
                ?>
                    <span class="category"><a class="discover"
                                              href="<?php 
                echo _SPPATH;
                ?>
pr/w3/<?php 
                echo $cat->cat_id;
                ?>
/<?php 
                echo $cat->cat_name;
                ?>
"><?php 
                echo $cat->cat_name;
                ?>
</a> </span> &nbsp;
                    <?php 
                $impcat[] = "TaggingLevel3ID = '{$cat->cat_id}'";
            }
            $queryImp = implode(" OR ", $impcat);
            $atprod = $at->getWhereFromMultipleTable("(" . $queryImp . ") AND ArticleType = 'Base' AND {$prod->table_name}.VariantID != '{$id}' AND {$at->table_name}.BaseArticleID = {$prod->table_name}.BaseArticleID LIMIT 0,12", array("MProdModel"));
            $atprod = array_reverse($atprod);
            //                            pr($atprod);
            $sudahCarousel = array();
            foreach ($atprod as $atss) {
                if (!in_array($atss->VariantID, $sudahCarousel)) {
                    $sudahCarousel[] = $atss->VariantID;
                    $masukan[] = $atss;
                }
            }
            $atprod = $masukan;
            if (count($atprod) > 0) {
                ?>


                <div class="recommended_items"
                     style="margin-top: 10px; border:1px dashed #cccccc; padding-right: 10px; padding-left: 10px; margin-bottom: 30px;">
                    <!--recommended_items-->

                    <div id="recommended-item-carousel" class="carousel slide" data-ride="carousel">
                        <div class="carousel-inner" style="padding: 20px;">
                            <?php 
                $cnt = count($atprod);
                $page = ceil($cnt / 4);
                for ($x = 1; $x <= $page; $x++) {
                    ?>
                                <div class="item <?php 
                    if ($x == 1) {
                        echo "active";
                    }
                    ?>
">
                                    <?php 
                    for ($y = 0; $y < 4; $y++) {
                        if (count($atprod) > 0) {
                            $atss = array_pop($atprod);
                            //durchlaufen disini ..thd rule
                            if (count($rules2variant[$atss->VariantID]) > 0) {
                                $uu = $rules2variant[$atss->VariantID];
                                //set icon
                                $atss->rule_icon = _SPPATH . _PHOTOURL . $rules[$uu[0]]->rule_icon;
                                //                            pr($uu);
                                //diskon
                                $diskon = 0;
                                foreach ($uu as $ruleygkena) {
                                    $r = $rules[$ruleygkena];
                                    $diskon = max($r->rule_discount, $diskon);
                                }
                                $atss->rule_discount = $diskon;
                            } else {
                                $atss->rule_icon = "";
                                //default rule icon
                                $atss->rule_discount = 0;
                            }
                            $atss->final_price = (100 - $atss->rule_discount) / 100 * $atss->SellingPrice;
                            $pc = new ProductAtCategory();
                            $imgurl = $pc->imgURL . $atss->BaseArticleImageFile;
                            if ($atss->BaseArticleImageFile == "") {
                                $atss = $pc->noimage;
                            }
                            ?>
                                            <div class="prod-item col-md-3 col-sm-6 col-xs-6">

                                                <a href="<?php 
                            echo _SPPATH;
                            ?>
pr/p/<?php 
                            echo $atss->VariantID;
                            ?>
/<?php 
                            echo ProductAtCategory::bersihkanNama($atss->BaseArticleNameINA);
                            ?>
">
                                                    <?php 
                            if ($atss->rule_icon != "") {
                                ?>
                                                        <div class="imgstamp_ole">
                                                            <img src="<?php 
                                echo $atss->rule_icon;
                                ?>
" width="60px">
                                                        </div>
                                                    <?php 
                            }
                            ?>
                                                    <div class="product_list_item_img2">
                                                    <img
                                                        src="<?php 
                            echo $imgurl;
                            ?>
"
                                                        >
                                                    </div>
                                                </a>
                                                <b class="elips"><a
                                                        href="<?php 
                            echo _SPPATH;
                            ?>
pr/p/<?php 
                            echo $atss->VariantID;
                            ?>
/<?php 
                            echo ProductAtCategory::bersihkanNama($atss->BaseArticleNameINA);
                            ?>
">
                                                        <?php 
                            echo $atss->BaseArticleNameINA;
                            ?>
</a></b>

                                                <!--                                <p class="elips">-->
                                                <?php 
                            //=$atss->ArticleInfoENG;
                            ?>
<!--</p>-->

                                                <!--                                <div class="rating">-->
                                                <!--                                    <div class="rating">-->
                                                <!--                                        <span>☆</span><span>☆</span><span>☆</span><span>☆</span><span>☆</span>-->
                                                <!--                                    </div>-->
                                                <!---->
                                                <!--                                </div>-->
                                                <?php 
                            //pr($obj);
                            if ($atss->rule_discount > 0) {
                                ?>
                                                    <div class="item_price item_price_small">
                                                        IDR <?php 
                                echo idr($atss->SellingPrice);
                                ?>
</div>
                                                    <div class="item_price">IDR <?php 
                                echo idr($atss->final_price);
                                ?>
</div>
                                                <?php 
                            } else {
                                ?>
                                                    <div class="item_price item_price_small"></div>
                                                    <div class="item_price">IDR <?php 
                                echo idr($atss->final_price);
                                ?>
</div>
                                                <?php 
                            }
                            ?>

                                                <a class="discover_more"
                                                   href="<?php 
                            echo _SPPATH;
                            ?>
pr/p/<?php 
                            echo $atss->VariantID;
                            ?>
/<?php 
                            echo ProductAtCategory::bersihkanNama($atss->BaseArticleNameINA);
                            ?>
">Discover
                                                    More</a>
                                            </div>
                                        <?php 
                        }
                        ?>
                                    <?php 
                    }
                    ?>

                                </div>
                            <?php 
                }
                ?>


                        </div>
                        <a class="left recommended-item-control" href="#recommended-item-carousel" data-slide="prev">
                            <i class="glyphicon glyphicon-chevron-left"></i>
                        </a>
                        <a class="right recommended-item-control" href="#recommended-item-carousel" data-slide="next">
                            <i class="glyphicon glyphicon-chevron-right"></i>
                        </a>
                    </div>
                </div>
                <?php 
            }
            ?>
                <div class="clearfix"></div>


            </div>
            <style>
                .elips {

                    /*font-weight: bold;*/
                    color: #777777;
                    height: 40px;
                    text-overflow: ellipsis;
                    margin-top: 10px;
                    overflow: hidden;
                    /*white-space:nowrap;*/
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    text-align: center;
                }
                .product_list_item_img2 {
                    width: 100%;
                    height: 147px;
                    overflow: hidden;
                    margin: auto;
                    text-align: center;
                }

                .product_list_item_img2 img {
                    max-width: 100%;
                    max-height: 100%;
                }
                .elips a {
                    color: #666666;
                }

                .recommended-item-control {
                    position: absolute;
                    top: 41%;
                }

                .left {
                    left: 0;
                }

                .right {
                    right: 0;
                }

                .discover {
                    color: #e2007a;
                }

                .imgstamp_ole {
                    position: absolute;
                    width: 60px;
                    height: 60px;
                    overflow: hidden;
                }

                div.imgstamp_ole img {
                    min-width: 60px;
                    min-height: 60px;
                }

                .item_price {
                    color: #e2007a;
                    font-size: 25px;
                }

                .item_price_small {
                    text-decoration: line-through;
                    font-size: 13px;
                    height: 18px;
                }

                .discover_more {
                    color: #666666;
                    text-decoration: underline;
                    font-size: 12px;
                }
            </style>
        <?php 
        }
        //        pr($prod);
    }
Beispiel #11
0
    if (!empty($aid)) {
        $id = $aid;
    }
    require_once dirname(__FILE__) . '/digg_ajax.php';
    exit;
}
$cfg_formmember = isset($cfg_formmember) ? true : false;
$ischeck = $cfg_feedbackcheck == 'Y' ? 0 : 1;
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
$fid = isset($fid) && is_numeric($fid) ? $fid : 0;
if (empty($aid) && empty($fid)) {
    ShowMsg('文档id不能为空!', '-1');
    exit;
}
include_once DEDEINC . "/memberlogin.class.php";
$cfg_ml = new MemberLogin();
if ($action == 'goodfb') {
    AjaxHead();
    $fid = intval($fid);
    $dsql->ExecuteNoneQuery("UPDATE `#@__feedback` SET good = good+1 WHERE id='{$fid}' ");
    $row = $dsql->GetOne("SELECT good FROM `#@__feedback` WHERE id='{$fid}' ");
    echo "<a onclick=\"postBadGood('goodfb',{$aid})\">支持</a>[{$row['good']}]";
    exit;
} else {
    if ($action == 'badfb') {
        AjaxHead();
        $fid = intval($fid);
        $dsql->ExecuteNoneQuery("UPDATE `#@__feedback` SET bad = bad+1 WHERE id='{$fid}' ");
        $row = $dsql->GetOne("SELECT bad FROM `#@__feedback` WHERE id='{$fid}' ");
        echo "<a onclick=\"postBadGood('badfb',{$aid})\">反对</a>[{$row['bad']}]";
        exit;
Beispiel #12
0
     }
 }
 /** 此处增加不同类别会员的特殊数据处理sql语句 **/
 $dsql->ExecuteNoneQuery($infosquery);
 //写入默认统计数据
 $membertjquery = "INSERT INTO `#@__member_tj` (`mid`,`article`,`album`,`archives`,`homecount`,`pagecount`,`feedback`,`friend`,`stow`)\r\n               VALUES ('{$mid}','0','0','0','0','0','0','0','0'); ";
 $dsql->ExecuteNoneQuery($membertjquery);
 //写入默认空间配置数据
 $spacequery = "Insert Into `#@__member_space`(`mid` ,`pagesize` ,`matt` ,`spacename` ,`spacelogo` ,`spacestyle`, `sign` ,`spacenews`)\r\n\t            Values('{$mid}','10','0','{$uname}的空间','','{$space}','',''); ";
 $dsql->ExecuteNoneQuery($spacequery);
 //写入其它默认数据
 $dsql->ExecuteNoneQuery("INSERT INTO `#@__member_flink`(mid,title,url) VALUES('{$mid}','织梦内容管理系统','http://www.dedecms.com'); ");
 //----------------------------------------------
 //模拟登录
 //---------------------------
 $cfg_ml = new MemberLogin(7 * 3600);
 $rs = $cfg_ml->CheckUser($userid, $userpwd);
 //邮件验证
 if ($cfg_mb_spacesta == -10) {
     $userhash = md5($cfg_cookie_encode . '--' . $mid . '--' . $email);
     $url = $cfg_basehost . (empty($cfg_cmspath) ? '/' : $cfg_cmspath) . "/member/index_do.php?fmdo=checkMail&mid={$mid}&userhash={$userhash}&do=1";
     $url = eregi_replace('http://', '', $url);
     $url = 'http://' . eregi_replace('//', '/', $url);
     $mailtitle = "{$cfg_webname}--会员邮件验证通知";
     $mailbody = '';
     $mailbody .= "尊敬的用户,您好:\r\n";
     $mailbody .= "欢迎注册成为[{$cfg_webname}]的会员。\r\n";
     $mailbody .= "要通过注册,还必须进行最后一步操作,请点击或复制下面链接到地址栏访问这地址:\r\n\r\n";
     $mailbody .= "{$url}\r\n\r\n";
     $mailbody .= "Power by http://www.dedecms.com 织梦内容管理系统!\r\n";
     $headers = "From: " . $cfg_adminemail . "\r\nReply-To: " . $cfg_adminemail;
    public static function my()
    {
        $acc = MemberLogin::getMember();
        ?>
        <div id="mycard" style="position: fixed; height: 100%;  top:0px; left: 0px; width: 100%; z-index: 100; background-color: rgba(0,0,0,0.8);">
            <div class="container">
                <div class="row">
                    <div class="monly" style="height: 60px;"></div>

                        <div class="bgcard" style="margin: auto; margin-top: 40px; color: #FFFFFF;" >
                            <div style="float: right; margin-right: 5px;cursor: pointer; width: 10px; height: 10px;" onclick="$('#mycard').hide();">x</div>
                            <div style="padding-top: 72px; margin-left: 20px;">
                                <div class="lybname" style="font-size: 21px;"><?php 
        echo ucwords($acc->macc_first_name . " " . $acc->macc_last_name);
        ?>
</div>
                                <div class="lybname" style="font-size: 15px;">Card # : <?php 
        echo $acc->macc_card_nr;
        ?>
</div>
                                <div class="lybname" style="font-size: 15px;"><?php 
        echo $acc->macc_lyb_status;
        ?>
</div>
                                <div class="lybname" style="font-size: 15px;">Points : <?php 
        echo $acc->macc_points;
        ?>
</div>

                            </div>
                            <div style="padding-top: 215px; margin-left: 100px;">
                                <div class="lybname" style="font-size: 15px;">Expiry Date : <?php 
        echo date("M j, Y", strtotime($acc->macc_lyb_expiry_date));
        ?>
</div>
                            </div>
                        </div>

                </div>
            </div>

        </div>
        <style>
            .bgcard{
                width: 300px;
                height: 482px;
                background-image: url(<?php 
        echo _SPPATH;
        ?>
images/lybcard.jpg);
                background-size: 300px 482px;
            }
        </style>
<!--        <div class="monly" style="height: 60px;"></div>-->
        <div class="col-md-10 col-md-offset-1" style="margin-top: 40px;">
            <div style="float: right; width: 20px; height: 20px; font-size: 30px;color: #777777;">
                <i style="cursor: pointer;" onclick="$('#mycard').toggle();" class="glyphicon glyphicon-credit-card"></i>
            </div>
        <h3 style="margin-bottom: 20px;">
            <?php 
        if ($acc->macc_lyb_status == "LYB Fan") {
            ?>
                <img height="80px" src="<?php 
            echo _SPPATH;
            ?>
images/fan.jpg" align="absmiddle">
            <?php 
        }
        ?>
            <?php 
        echo ucwords($acc->macc_first_name . " " . $acc->macc_last_name);
        ?>
        </h3>
        </div>
        <div class="clearfix"></div>
        <div class="col-md-5 col-md-offset-1" style="margin-top: 20px;">

            <table class="table" style="color: #777777;">
                <tr>
                    <td>Points</td>
                    <td><b><?php 
        echo $acc->macc_points;
        ?>
</b></td>
                </tr>
                <tr>
                    <td>Expiry Date</td>
                    <td><?php 
        echo date("d/m/Y", strtotime($acc->macc_lyb_expiry_date));
        ?>
</td>
                </tr>
                <tr>
                    <td>Card Number</td>
                    <td><?php 
        echo $acc->macc_card_nr;
        ?>
</td>
                </tr>
                <tr>
                    <td>Membership Status</td>
                    <td><?php 
        echo $acc->macc_lyb_status;
        ?>
</td>
                </tr>
            </table>

        </div>
        <div class="col-md-5" style="margin-top: 20px;">

            <table class="table" style="color: #777777;">
                <tr>
                    <td>Gender</td>
                    <td><?php 
        echo $acc->macc_gender;
        ?>
</td>
                </tr>
                <tr>
                    <td>Date of Birth</td>
                    <td><?php 
        echo $acc->macc_dob;
        ?>
</td>
                </tr>
                <tr>
                    <td>Email</td>
                    <td><?php 
        echo $acc->macc_email;
        ?>
</td>
                </tr>
                <tr>
                    <td>Phone</td>
                    <td><?php 
        echo $acc->macc_phone;
        ?>
</td>
                </tr>



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

        <div class="col-md-10 col-md-offset-1" style="margin-top: 20px;">
            <hr>
            <h3 style="margin-bottom: 20px;">Statements</h3>

            <?php 
        if (isset($acc->statements->transactions) && is_array($acc->statements->transactions)) {
            $arr = $acc->statements->transactions;
            $rev = array_reverse($arr);
            ?>
                <div class="table-responsive">
                <table class="table table-striped" style="color: #777777;">
                <?php 
            foreach ($rev as $st) {
                ?>
                    <tr>
                        <td style="max-width: 80px;">
                            <?php 
                echo $st->TransactionDateTime;
                ?>
                        </td>
                        <td >
                            <?php 
                echo $st->StoreName;
                ?>
                        </td>
<!--                        <td>-->
<!--                            --><?php 
                //=$st->Description;
                ?>
<!--                        </td>-->
                        <td >
                            <?php 
                echo str_replace(" ", "<br>", $st->Cash_Type);
                ?>
                        </td>
                        <td style="text-align: right;">
                            <?php 
                echo $st->Cash_Currency;
                ?>
 <?php 
                echo idr($st->Cash_Value);
                ?>
                        </td>
                    </tr>

                    <?php 
            }
            ?>
</table></div><?php 
        } else {
            echo "You have no transaction yet";
        }
        ?>
        </div>
        <div class="clearfix"></div>
        <?php 
        //        pr(MemberLogin::getMember());
    }
 public function myprofile()
 {
     if (!MemberLogin::isLogged()) {
         MemberLogin::handleNotLogged();
     } else {
         MemberProfile::my();
     }
 }
Beispiel #15
0
require_once dirname(__FILE__) . '/../include/common.inc.php';
require_once DEDEINC . '/filter.inc.php';
require_once DEDEINC . '/memberlogin.class.php';
require_once DEDEINC . '/dedetemplate.class.php';
//获得当前脚本名称,如果你的系统被禁用了$_SERVER变量,请自行更改这个选项
$dedeNowurl = $s_scriptName = '';
$dedeNowurl = GetCurUrl();
$dedeNowurls = explode('?', $dedeNowurl);
$s_scriptName = $dedeNowurls[0];
//检查是否开放会员功能
if ($cfg_mb_open == 'N') {
    ShowMsg("系统关闭了会员功能,因此你无法访问此页面!", "javascript:;");
    exit;
}
$keeptime = isset($keeptime) && is_numeric($keeptime) ? $keeptime : -1;
$cfg_ml = new MemberLogin($keeptime);
//判断用户是否登录
$myurl = '';
if ($cfg_ml->IsLogin()) {
    $myurl = $cfg_memberurl . "/index.php?uid=" . urlencode($cfg_ml->M_LoginID);
    if (!ereg('^http:', $myurl)) {
        $myurl = $cfg_basehost . $myurl;
    }
}
//检查用户是否有权限进行某个操作
function CheckRank($rank = 0, $money = 0)
{
    global $cfg_ml, $cfg_memberurl;
    if (!$cfg_ml->IsLogin()) {
        header("Location:{$cfg_memberurl}/login.php?gourl=" . urlencode(GetCurUrl()));
        exit;
Beispiel #16
0
 //写入其它默认数据
 $dsql->ExecuteNoneQuery("INSERT INTO `#@__member_flink`(mid,title,url) VALUES('{$mid}','织梦58','http://www.dede58.com'); ");
 $membermodel = new membermodel($mtype);
 $modid = $membermodel->modid;
 $modid = empty($modid) ? 0 : intval(preg_replace("/[^\\d]/", '', $modid));
 $modelform = $dsql->getOne("SELECT * FROM #@__member_model WHERE id='{$modid}' ");
 if (!is_array($modelform)) {
     showmsg('模型表单不存在', '-1');
     exit;
 } else {
     $dsql->ExecuteNoneQuery("INSERT INTO `{$membermodel->table}` (`mid`) VALUES ('{$mid}');");
 }
 //----------------------------------------------
 //模拟登录
 //---------------------------
 $cfg_ml = new MemberLogin(7 * 3600);
 $rs = $cfg_ml->CheckUser($userid, $userpwd);
 //邮件验证
 if ($cfg_mb_spacesta == -10) {
     $userhash = md5($cfg_cookie_encode . '--' . $mid . '--' . $email);
     $url = $cfg_basehost . (empty($cfg_cmspath) ? '/' : $cfg_cmspath) . "/member/index_do.php?fmdo=checkMail&mid={$mid}&userhash={$userhash}&do=1";
     $url = preg_replace("#http:\\/\\/#i", '', $url);
     $url = 'http://' . preg_replace("#\\/\\/#", '/', $url);
     $mailtitle = "{$cfg_webname}--会员邮件验证通知";
     $mailbody = '';
     $mailbody .= "尊敬的用户[{$uname}],您好:\r\n";
     $mailbody .= "欢迎注册成为[{$cfg_webname}]的会员。\r\n";
     $mailbody .= "要通过注册,还必须进行最后一步操作,请点击或复制下面链接到地址栏访问这地址:\r\n\r\n";
     $mailbody .= "{$url}\r\n\r\n";
     $mailbody .= "Power by http://www.dede58.com 织梦58!\r\n";
     $headers = "From: " . $cfg_adminemail . "\r\nReply-To: " . $cfg_adminemail;
Beispiel #17
0
/**
 *
 * 投票
 *
 * @version        $Id: vote.php 1 20:54 2010年7月8日Z tianya $
 * @package        DedeCMS.Site
 * @copyright      Copyright (c) 2007 - 2010, DesDev, Inc.
 * @license        http://help.dedecms.com/usersguide/license.html
 * @link           http://www.dedecms.com
 */
require dirname(__FILE__) . "/../include/common.inc.php";
require DEDEINC . "/dedevote.class.php";
require DEDEINC . "/memberlogin.class.php";
require DEDEINC . "/userlogin.class.php";
$member = new MemberLogin();
$memberID = $member->M_LoginID;
$time = time();
$content = $memberID . '|' . $time;
$file = DEDEDATA . '/cache/vote_' . $aid . '_' . $member->M_ID . '.inc';
//存放会员投票记录的缓存文件
$loginurl = $cfg_basehost . "/member";
$ENV_GOBACK_URL = empty($_SERVER['HTTP_REFERER']) ? '' : $_SERVER['HTTP_REFERER'];
if (empty($dopost)) {
    $dopost = '';
}
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
if ($aid == 0) {
    die(" Request Error! ");
}
if ($aid == 0) {
 function isiCart()
 {
     $json['bool'] = 0;
     $totalplusdiskon = addslashes($_POST['totalplusdiskon']);
     $total = addslashes($_POST['total']);
     $diskon = addslashes($_POST['diskon']);
     $arr = CartWeb::myCart();
     $mm = new MTranDetail();
     $mm->detail_date = leap_mysqldate();
     $mm->detail_diskon = $diskon;
     $mm->detail_price = $total;
     $mm->detail_price_total = $totalplusdiskon;
     if (MemberLogin::isLogged()) {
         $mm->detail_macc_id = MemberLogin::getID();
     }
     $mm->detail_ses_id = session_id();
     $mm->detail_qty = CartWeb::totalCart();
     if ($mm->save()) {
         foreach ($arr as $obj) {
             $obj->status = 2;
             $obj->load = 1;
             $obj->save();
             //update bought
             $mprod = new MProdModel();
             $mprod->getByID($obj->variant_id);
             $mprod->updateBought();
         }
         session_regenerate_id();
         $json['bool'] = 1;
     }
     //if sukses
     echo json_encode($json);
     die;
 }
Beispiel #19
0
<?php

require_once dirname(__FILE__) . "/../include/common.inc.php";
require_once dirname(__FILE__) . '/../include/memberlogin.class.php';
$bid = isset($bid) && is_numeric($bid) ? $bid : 0;
$star = isset($star) && is_numeric($star) ? $star : 0;
if ($bid == 0 || !in_array($star, array('1', '2', '3', '4', '5'))) {
    exit("Error:Wrong bid or stars,please check it!");
}
$cfg_ml = new MemberLogin();
$myip = GetIP();
if (!$cfg_ml->IsLogin()) {
    //如果用户没有登录
    echo "用户没有登录!";
}
$username = $cfg_ml->M_UserName;
$sql = "SELECT totalvotes, totalvalue, voteinfo, usedids FROM #@__story_bookstars WHERE bid='{$bid}' ";
$dsql->Execute('qr', $sql);
$numbers = $dsql->GetArray('qr');
$checkid = unserialize($numbers['usedids']);
$count = $numbers['totalvotes'];
$currating = $numbers['totalvalue'];
$sum = $star * 2 + $currating;
$sum == 0 ? $added = 0 : ($added = $count + 1);
$id_num = $username . '^' . $star;
is_array($checkid) ? array_push($checkid, $id_num) : ($checkid = array($id_num));
$insertid = serialize($checkid);
//处理用户投票的信息
$checkinfo = unserialize($numbers['voteinfo']);
foreach ($checkinfo as $key => $value) {
    if ($key == $star) {
Beispiel #20
0
}
$payment = 'none';
if (isset($pd_encode) && isset($pd_verify) && md5("payment" . $pd_encode . $cfg_cookie_encode) == $pd_verify) {
    parse_str(mchStrCode($pd_encode, 'DECODE'), $mch_Post);
    $payment = 'ready';
    foreach ($mch_Post as $k => $v) {
        ${$k} = $v;
    }
}
$pr_encode = '';
foreach ($_REQUEST as $key => $val) {
    $pr_encode .= $pr_encode ? "&{$key}={$val}" : "{$key}={$val}";
}
$pr_encode = str_replace('=', '', mchStrCode($pr_encode));
$pr_verify = md5("payment" . $pr_encode . $cfg_cookie_encode);
$cfg_ml = new MemberLogin();
$cart = new MemberShops();
//获得购物车内商品,返回数组
$Items = $cart->getItems();
if (empty($Items)) {
    ShowMsg("抱歉,请不要重复提交!", "javascript:;");
    exit;
}
$OrdersId = $cart->OrdersId;
//本次记录的订单号
$CartCount = $cart->cartCount();
//商品总数
$priceCount = $cart->priceCount();
//该订单总价格
/*
function PostOrdersForm();				//填写订单信息
    public static function processCategoryMobile()
    {
        $obj = self::getCategory();
        $num = 0;
        ?>
        <script>
            var isLog = 0;
            function showLoginMob(){
                isLog = 1;
                $('#myNavmenu').offcanvas('hide');
            }
            function showRegisterMob(){
                isLog = 2;
                $('#myNavmenu').offcanvas('hide');
            }

            $('#myNavmenu').on('hidden.bs.offcanvas', function (e) {
                //if (!data) return e.preventDefault() // stops menu from being shown
                if(isLog == 1) {
//                    $('#loginPage').show();
//                    $('#regPage').hide();
//                    $('#content_all').hide();
                    showLogin();
                }
                if(isLog == 2){
                    showRegister();
                }
            });

            $('#myNavmenu').on('show.bs.offcanvas', function (e) {
//                if (!data) return e.preventDefault() // stops menu from being shown
                isLog = 0;
            })
        </script>
        <div style="padding: 10px;">
            <div id="loginbox_mobile">
                <div class="loginbox_inside">
                    <div class="hitam">
                        <div id="login_menu_mob" class="login_menu"
                             <?php 
        if (MemberLogin::isLogged()) {
            ?>
style="display: none;"<?php 
        }
        ?>
>
                            <a style="color:#dedede;" onclick="showLoginMob();">LOG IN</a> / <a style="color:#dedede;" onclick="showRegisterMob();">REGISTER</a>
                        </div>
                        <div id="logged_menu_mob" class="login_menu"
                             <?php 
        if (!MemberLogin::isLogged()) {
            ?>
style="display: none;"<?php 
        }
        ?>
>
                            <a style="color:#dedede;" href="<?php 
        echo _SPPATH;
        ?>
myprofile"><?php 
        echo MemberLogin::getName();
        ?>
</a> | <a
                                href="<?php 
        echo _SPPATH;
        ?>
logout" style="color:#dedede;">LOGOUT</a>
                        </div>
                        <div class="clearfix"></div>
                        <div class="basket">

                            <div class="basket_text2" id="basketcart_mob">
                                <a href="<?php 
        echo _SPPATH;
        ?>
mycart">MY BAG</a> <span id="basketcart_qty_mob" style="color:white;"><?php 
        echo CartWeb::totalCart();
        ?>
</span>
                            </div>

                        </div>

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

            </div>

        <div class="input-group">
            <input id="searchAllMob" value="<?php 
        echo $_GET['qsearch'];
        ?>
" type="text" class="form-control" placeholder="Search"/>
                        <span class="input-group-addon">
                        <i class="glyphicon glyphicon-search" onclick="searchAllMob();"></i>
                        </span>
            <script>
                $('#searchAllMob').keypress(function(e) {
                    if(e.which == 13) {
                        searchAll();
                    }
                });

                function searchAllMob(){
                    var slc = $('#searchAllMob').val();

                    if(slc!=''){
                        document.location="<?php 
        echo _SPPATH;
        ?>
pr/search?qsearch="+urlencode(slc);
                    }
                }


            </script>
        </div>
        </div>


        <ul class="nav navmenu-nav" id="mobile_menu">

            <li>
               <a href="<?php 
        echo _SPPATH;
        ?>
">HOME</a>

            </li>

        <?php 
        foreach ($obj->layer as $key => $val) {
            $name = trim(rtrim($obj->detail->{$key}));
            ?>
            <li>
                <a id="#mob_menu_<?php 
            echo $key;
            ?>
" title="<?php 
            echo $name;
            ?>
" href="<?php 
            echo _SPPATH;
            ?>
pr/w1/<?php 
            echo $key;
            ?>
/<?php 
            echo urlencode($name);
            ?>
"><?php 
            echo $name;
            ?>
</a>



            </li>




            <?php 
            $num++;
        }
        ?>
        </ul>
        <style>
            #mobile_menu li{
                border-bottom: 1px dashed #777777;
            }
            #mobile_menu li a{
                color: #cccccc;
            }
            #mobile_menu li a:hover{
                color: #FFFFFF;
            }
            .basket_text2{
                line-height: 40px;
                margin-left: 10px;
                text-align: right;
                font-weight: bold;
                font-size: 17px;
            }
            .basket_text2 a {
                color: #e2007a;
            }
        </style>

    <?php 
    }