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


PHP ncUrl函数代码示例

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


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

示例1: getGoodsClassNav

 /**
  * 取指定分类ID的导航链接
  *
  * @param int $id 父类ID/子类ID
  * @return array $nav_link 返回数组形式类别导航连接
  */
 public function getGoodsClassNav($id = 0)
 {
     if (intval($id) > 0) {
         $data = ($g = H('goods_class')) ? $g : H('goods_class', true);
         //当前分类加名称及超链接
         $nav_link[] = array('title' => $data[$id]['gc_name'], 'link' => ncUrl(array('act' => 'search', 'cate_id' => $data[$id]['gc_id'])));
         //最多循环4层
         for ($i = 1; $i < 5; $i++) {
             if ($data[$id]['gc_parent_id'] == '0') {
                 break;
             }
             $id = $data[$id]['gc_parent_id'];
             $nav_link[] = array('title' => $data[$id]['gc_name'], 'link' => ncUrl(array('act' => 'search', 'cate_id' => $data[$id]['gc_id'])));
         }
         //加上 首页导航
         $nav_link[] = array('title' => Language::get('homepage'), 'link' => SiteUrl . '/index.php');
     } else {
         //加上 首页导航
         $nav_link[] = array('title' => Language::get('homepage'), 'link' => SiteUrl . '/index.php');
     }
     krsort($nav_link);
     return $nav_link;
 }
开发者ID:my1977,项目名称:shopnc,代码行数:29,代码来源:goods.model.php

示例2: ncUrl

</span></a>
      		</div>
      		<?php 
        }
        ?>
      		<div style="color: #999999; padding-top:3px;">[<?php 
        echo @date('Y-m-d', $v['geval_addtime']);
        ?>
]</div>
      	</td>
      	<td class="align-center"><?php 
        echo $v['geval_tomembername'];
        ?>
</td>
        <td><a href="<?php 
        echo SiteUrl . DS . ncUrl(array('act' => 'goods', 'goods_id' => $v['geval_goodsid']), 'goods');
        ?>
" target="_blank"><?php 
        echo $v['geval_goodsname'];
        ?>
</a></td>
        <td class="align-center"><?php 
        echo $v['geval_storename'];
        ?>
</td>
        <td class="align-center"><?php 
        echo $output['evaluate_state'][$v['geval_state']];
        ?>
</td>
        <td class="align-center">
        	<a href="index.php?act=evaluate&op=evalgoods_info&type=seller&id=<?php 
开发者ID:dw250100785,项目名称:shopnc,代码行数:31,代码来源:evalseller.index.php

示例3: ncUrl

        ?>
</p>
              </li>
              <li>
                <p class="number"><?php 
        echo $v['store_collect'];
        ?>
</p>
                <p class="kind"><?php 
        echo $lang['sns_sharestore_collectnum'];
        ?>
</p>
              </li>
            </ul>
            <div class="button"><span><a href="<?php 
        echo ncUrl(array('act' => 'show_store', 'id' => $v['store_id']), 'store');
        ?>
"><?php 
        echo $lang['sns_round_store'];
        ?>
</a></span><span><a href="javascript:collect_store('<?php 
        echo $v['store_id'];
        ?>
','count','store_collect')"><?php 
        echo $lang['sns_collect_store'];
        ?>
</a></span></div>
          </div>
          <div style="clear: both;"></div>
        </div>
      </li>
开发者ID:noikiy,项目名称:ecmall,代码行数:31,代码来源:sns_storelist.php

示例4: ncUrl

          <dt><?php 
echo $lang['nc_srore_location'];
?>
</dt>
          <dd class="gray"><?php 
echo $output['store_info']['area_info'];
?>
</dd>
        </dl>
        <dl class="other">
          <dt><?php 
echo $lang['nc_goods_amount'];
?>
</dt>
          <dd><a href="<?php 
echo ncUrl(array('act' => 'show_store', 'id' => $output['store_info']['store_id']), 'store', $output['store_info']['store_domain']);
?>
" class="btn"><?php 
echo $lang['nc_around_shop'];
?>
</a><strong><?php 
echo $output['store_info']['goods_count'];
?>
</strong><?php 
echo $lang['nc_jian'];
echo $lang['nc_goods'];
?>
</dd>
          <dt><?php 
echo $lang['nc_store_collect'];
?>
开发者ID:dw250100785,项目名称:shopnc,代码行数:31,代码来源:header.php

示例5: switch

target="_blank" <?php 
            }
            ?>
href="<?php 
            switch ($nav['nav_type']) {
                case '0':
                    echo $nav['nav_url'];
                    break;
                case '1':
                    echo SHOP_SITE_URL . '/' . ncUrl(array('act' => 'search', 'nav_id' => $nav['nav_id'], 'cate_id' => $nav['item_id']), '', 'www');
                    break;
                case '2':
                    echo SHOP_SITE_URL . '/' . ncUrl(array('act' => 'article', 'nav_id' => $nav['nav_id'], 'ac_id' => $nav['item_id']), '', 'www');
                    break;
                case '3':
                    echo SHOP_SITE_URL . '/' . ncUrl(array('act' => 'activity', 'activity_id' => $nav['item_id'], 'nav_id' => $nav['nav_id']), 'activity', 'www');
                    break;
            }
            ?>
"><?php 
            echo $nav['nav_title'];
            ?>
</a>
    <?php 
        }
        ?>
    <?php 
    }
    ?>
    <?php 
}
开发者ID:noikiy,项目名称:shopnc-2,代码行数:31,代码来源:footer.php

示例6: ajax_change_store_codeOp

 /**
  * 修改店铺二维码 ajax
  */
 public function ajax_change_store_codeOp()
 {
     /**
      * 实例化
      */
     $store_model = Model('store');
     // 删除原有二维码图片
     $store_info = $store_model->getOne($_SESSION['store_id']);
     if ($store_info['store_code'] != 'default_qrcode.png') {
         @unlink(ATTACH_STORE . DS . $store_info['store_code']);
     }
     // 生成新的二维码
     require_once BasePath . DS . 'resource' . DS . 'phpqrcode' . DS . 'index.php';
     $PhpQRCode = new PhpQRCode();
     if (C('enabled_subdomain') == 1 && $store_info['store_domain'] != '') {
         $PhpQRCode->set('date', ncUrl(array('act' => 'show_store', 'id' => $_SESSION['store_id']), 'store', $store_info['store_domain']));
     } else {
         $PhpQRCode->set('date', SiteUrl . DS . ncUrl(array('act' => 'show_store', 'id' => $_SESSION['store_id']), 'store', $store_info['store_domain']));
     }
     $PhpQRCode->set('pngTempDir', ATTACH_STORE . DS);
     $url = $PhpQRCode->init();
     $store_model->storeUpdate(array('store_code' => $url, 'store_id' => $_SESSION['store_id']));
     echo json_encode($url);
 }
开发者ID:dw250100785,项目名称:shopnc,代码行数:27,代码来源:store.php

示例7: ncUrl

      <dt><?php 
echo $lang['member_evaluation_frommembertitle'] . $lang['nc_colon'];
?>
</dt>
      <dd><?php 
echo $output['info']['geval_frommembername'];
?>
</dd>
    </dl>
    <dl>
      <dt><?php 
echo $lang['member_evaluation_relatedgoods'] . $lang['nc_colon'];
?>
</dt>
      <dd><a target="_blank" href="<?php 
echo ncUrl(array('act' => 'goods', 'goods_id' => $output['info']['geval_goodsid']), 'goods');
?>
"><?php 
echo $output['info']['geval_goodsname'];
?>
</a></dd>
    </dl>
    <dl>
      <dt><?php 
echo $lang['member_evaluation_title'] . $lang['nc_colon'];
?>
</dt>
      <dd><?php 
echo $lang['member_evaluation_' . $output['info']['geval_scoressign']];
?>
</dd>
开发者ID:noikiy,项目名称:ecmall,代码行数:31,代码来源:member_evaluation_edit2.php

示例8: ncUrl

            <p class="hint"><?php 
echo $lang['store_create_upload_rule'];
?>
</p>
          </dd>
        </dl>
        <dl class="bottom">
          <dt>&nbsp;</dt>
          <dd>
            <p class="mb10">
              <input name="notice" type="checkbox" id="notice" value="1" checked="checked" />
              <label for="notice"><?php 
echo $lang['store_create_read_agreement1'];
?>
<a href="<?php 
echo ncUrl(array('act' => 'document', 'code' => 'open_store'), 'document');
?>
" target="_blank"><?php 
echo $lang['store_create_store_agreement'];
?>
</a><?php 
echo $lang['store_create_read_agreement2'];
?>
</label>
            <span></span> </p>
            <p class="mb10">
              <input type="submit" class="submit" value="<?php 
echo $lang['store_create_create_now'];
?>
" />
            </p>
开发者ID:noikiy,项目名称:ecmall,代码行数:31,代码来源:seller_step2.php

示例9: sharestore_oneOp

 /**
  * 店铺收藏页面分享店铺
  */
 public function sharestore_oneOp()
 {
     $sid = intval($_GET['sid']);
     if ($sid <= 0) {
         showDialog(Language::get('wrong_argument'), '', 'error');
     }
     if ($_GET['dialog']) {
         $js = "ajax_form('sharestore', '" . Language::get('sns_sharestore') . "', 'index.php?act=member_snsindex&op=sharestore_one&sid={$sid}', 480);";
         showDialog('', '', 'js', $js);
     }
     //查询店铺信息
     $store_model = Model('store');
     $store_info = $store_model->getOne($sid);
     if (empty($store_info) || $store_info['store_state'] == 0) {
         showDialog(Language::get('sns_sharestore_storeerror'), '', 'error');
     }
     $store_info['store_url'] = ncUrl(array('act' => 'show_store', 'id' => $store_info['store_id']), 'store', $store_info['store_domain']);
     //信息输出
     Tpl::output('nchash', substr(md5(SiteUrl . $_GET['act'] . $_GET['op']), 0, 8));
     Tpl::output('store_info', $store_info);
     Tpl::showpage('member_snssharestore_one', 'null_layout');
 }
开发者ID:noikiy,项目名称:ecmall,代码行数:25,代码来源:member_snsindex.php

示例10: store_addOp


//.........这里部分代码省略.........
                     }
                 }
                 Tpl::output('class_list', $parent_list);
                 Tpl::output('grade_list', $grade_list);
                 Tpl::output('member_array', $member_array);
                 Tpl::showpage('store.add_two');
             }
         }
         /**
          * 添加第二步 添加
          */
         if ($_POST['step'] == 'two') {
             /**
              * 验证
              */
             $obj_validate = new Validate();
             $obj_validate->validateparam = array(array("input" => $_POST["store_name"], "require" => "true", "message" => $lang['please_input_store_name_p']));
             $error = $obj_validate->validate();
             if ($error != '') {
                 showMessage($error);
             } else {
                 /**
                  * 取店铺等级的审核
                  */
                 $model_grade = Model('store_grade');
                 $grade_array = $model_grade->getOneGrade(intval($_POST['grade_id']));
                 if (empty($grade_array)) {
                     showMessage($lang['please_input_store_level']);
                 }
                 /**
                  * 结束时间
                  */
                 if (trim($_POST['end_time']) != '') {
                     $time = strtotime($_POST['end_time']);
                 }
                 $insert_array = array();
                 $insert_array['member_name'] = trim($_POST['member_name']);
                 $insert_array['member_id'] = intval($_POST['member_id']);
                 $insert_array['store_owner_card'] = trim($_POST['store_owner_card']);
                 $insert_array['store_name'] = trim($_POST['store_name']);
                 $insert_array['sc_id'] = intval($_POST['sc_id']);
                 $insert_array['area_id'] = intval($_POST['area_id']);
                 $insert_array['area_info'] = trim($_POST['area_info']);
                 $insert_array['store_address'] = trim($_POST['store_address']);
                 $insert_array['store_zip'] = trim($_POST['store_zip']);
                 $insert_array['store_tel'] = trim($_POST['store_tel']);
                 $insert_array['grade_id'] = intval($_POST['grade_id']);
                 $insert_array['store_end_time'] = $time;
                 $insert_array['store_time'] = time();
                 $insert_array['store_state'] = trim($_POST['store_state']);
                 if ($_POST['store_state'] == '0') {
                     $insert_array['store_close_info'] = $_POST['store_close_info'];
                     $insert_array['store_recommend'] = 0;
                 } else {
                     $insert_array['store_recommend'] = trim($_POST['store_recommend']);
                 }
                 $insert_array['name_auth'] = trim($_POST['name_auth']);
                 $insert_array['store_auth'] = trim($_POST['store_auth']);
                 $insert_array['store_sort'] = intval($_POST['store_sort']);
                 $store_info = $model_store->shopStore(array('store_name' => $insert_array['store_name']));
                 if ($store_info['store_id'] > 0) {
                     //检查店铺名称是否存在
                     showMessage($lang['store_name_exists']);
                 }
                 $result = $model_store->add($insert_array);
                 if ($result) {
                     /**
                      * 更新会员表 store_id 字段
                      */
                     $model_member = Model('member');
                     $update_array = array();
                     $update_array['store_id'] = $result;
                     $model_member->updateMember($update_array, intval($_POST['member_id']));
                     // 生成店铺二维码
                     require_once BasePath . DS . 'resource' . DS . 'phpqrcode' . DS . 'index.php';
                     $PhpQRCode = new PhpQRCode();
                     $PhpQRCode->set('date', SiteUrl . DS . ncUrl(array('act' => 'show_store', 'id' => $result), 'store'));
                     $PhpQRCode->set('pngTempDir', BasePath . DS . ATTACH_STORE . DS);
                     $model_store->storeUpdate(array('store_code' => $PhpQRCode->init(), 'store_id' => $result));
                     // 添加相册默认
                     $album_model = Model('album');
                     $album_arr = array();
                     $album_arr['aclass_name'] = Language::get('store_save_defaultalbumclass_name');
                     $album_arr['store_id'] = $result;
                     $album_arr['aclass_des'] = '';
                     $album_arr['aclass_sort'] = '255';
                     $album_arr['aclass_cover'] = '';
                     $album_arr['upload_time'] = time();
                     $album_arr['is_default'] = '1';
                     $album_model->addClass($album_arr);
                     $url = array(array('url' => 'index.php?act=store&op=store', 'msg' => $lang['back_store_list']), array('url' => 'index.php?act=store&op=store_add', 'msg' => $lang['countinue_add_store']));
                     showMessage($lang['add_store_ok'], $url);
                 } else {
                     showMessage($lang['add_fail_fail']);
                 }
             }
         }
     }
     Tpl::showpage('store.add_one');
 }
开发者ID:noikiy,项目名称:ecmall,代码行数:101,代码来源:store.php

示例11: ncUrl

        <dl>
          <dt>&nbsp;</dt>
          <dd>
            <input type="submit" name="Submit" value="<?php 
echo $lang['login_register_regist_now'];
?>
" class="submit fl" title="<?php 
echo $lang['login_register_regist_now'];
?>
" />
            <input name="agree" type="checkbox" class="fl mt10 ml10" id="clause" value="1" checked="checked" />
            <span for="clause" class="fl ml5"><?php 
echo $lang['login_register_agreed'];
?>
<a href="<?php 
echo ncUrl(array('act' => 'document', 'code' => 'agreement'), 'document');
?>
" target="_blank" class="agreement" title="<?php 
echo $lang['login_register_agreed'];
?>
"><?php 
echo $lang['login_register_agreement'];
?>
</a></span>
            <label></label>
          </dd>
        </dl>
        <input type="hidden" value="<?php 
echo $_GET['ref_url'];
?>
" name="ref_url">
开发者ID:dw250100785,项目名称:shopnc,代码行数:31,代码来源:register.php

示例12: foreach

          <?php 
    foreach ($output['new_store'] as $key => $store) {
        ?>

          <li>
            <div style="float:left;width=65px;"><i></i><a href="<?php 
        echo ncUrl(array('act' => 'show_store', 'id' => $store['store_id']), 'store', $store['store_domain']);
        ?>
" target="_blank"><img src="<?php 
        echo $store['store_logo'];
        ?>
"  onload="javascript:DrawImage(this,64,64);" /></a></div>
            <dl>
              <dt><a href="<?php 
        echo ncUrl(array('act' => 'show_store', 'id' => $store['store_id']), 'store', $store['store_domain']);
        ?>
" target="_blank"><?php 
        echo $store['store_name'];
        ?>
</a></dt>
              <dd><?php 
        echo $lang['category_index_store_owner'];
        ?>
: <?php 
        echo $store['store_name'];
        ?>
</dd>
              <dd><?php 
        echo $lang['category_index_goods'];
        ?>
开发者ID:noikiy,项目名称:ecmall,代码行数:30,代码来源:category_store.php

示例13: foreach

    ?>
        <?php 
    foreach ($output['article_list'] as $article) {
        ?>
        <tr>
          <td><a <?php 
        if ($article['article_url'] != '') {
            ?>
target="_blank"<?php 
        }
        ?>
 href="<?php 
        if ($article['article_url'] != '') {
            echo $article['article_url'];
        } else {
            echo ncUrl(array('act' => 'article', 'article_id' => $article['article_id']), 'article');
        }
        ?>
" class="lebioa"><?php 
        echo $article['article_title'];
        ?>
</a></td>
          <td class="w150"><?php 
        echo date('Y-m-d H:i', $article['article_time']);
        ?>
</td>
        </tr>
        <?php 
    }
    ?>
        <?php 
开发者ID:noikiy,项目名称:shopnc-2,代码行数:31,代码来源:article_list.php

示例14: ncUrl

echo $lang['store_goods_album_insert_users_photo'];
?>
</a></p>
          <p id="des_demo" style="width:640px;display:none;"></p>
        </dd>
      </dl>
      <dl class="bottom">
        <dt>&nbsp;</dt>
        <dd>
          <p>
            <input id="groupbuy_agreement" type="checkbox" name="groupbuy_agreement"/>
            <label for="groupbuy_agreement" class="ml5"><?php 
echo $lang['text_read_agree1'];
?>
 <a href="<?php 
echo ncUrl(array('act' => 'document', 'code' => 'groupbuy'), 'document');
?>
" target="_blank" class="agreement"><?php 
echo $lang['text_agreement'];
?>
</a> <?php 
echo $lang['text_read_agree2'];
?>
</label>
            <span></span></p>
          <p class="mt10">
            <input type="submit" class="submit" value="<?php 
echo $lang['nc_submit'];
?>
">
          </p>
开发者ID:noikiy,项目名称:ecmall,代码行数:31,代码来源:store_groupbuy.add.php

示例15: ncUrl

?>
</th>
      </tr>
      <tr>
          <td>
  <!-- S 促销信息 -->
      <?php 
if (!empty($output['list'][0]['group_id'])) {
    ?>

      <span style="color:red"><?php 
    echo $lang['nc_groupbuy'];
    ?>
</span>
      <a href="<?php 
    echo SiteUrl . DS . ncUrl(array('act' => 'show_groupbuy', 'op' => 'groupbuy_detail', 'group_id' => $output['list'][0]['group_id'], 'id' => $output['list'][0]['store_id']), 'groupbuy');
    ?>
" target="_blank"><?php 
    echo $lang['nc_groupbuy_view'];
    ?>
</a>
      <?php 
}
?>

      <?php 
if (!empty($output['list'][0]['xianshi_id'])) {
    ?>

      <span style="color:red"><?php 
    echo $output['list'][0]['xianshi_explain'];
开发者ID:noikiy,项目名称:ecmall,代码行数:31,代码来源:order.view.php


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