lu359541745 发表于 2012-8-10 14:13:34

物流网开发中断之$cityid

物流网模版开发过程中遇到一个问题,需要修改sell搜索,要在搜索中添加起始地和目的地的搜索项;现在已经实现单个地址的搜索即起始地搜索或者目的地搜索;但是一直无法实现起始地和目的地共同搜索,其中module/sell/search.inc.php中已经实现$area_select_1 = ajax_area_select('fromarea', $L['all_area'], $fromarea);但是不能共存$area_select_2 = ajax_area_select('toarea', $L['all_area'], $toarea);关键在于对$fromarea定义时if(!$fromarea && $cityid && strpos($DT_URL, 'fromarea') === false) {
      $fromarea = $cityid;
      $FRO = $AREA[$cityid];
中已经应用的$cityid,所以在if(!$toarea && $cityid && strpos($DT_URL, 'toarea') === false) {
      $toarea = $cityid;
      $TOA = $AREA[$cityid];
中的$cityid不能再进行定义;
在下认为如果实现对$cityid2的定义就可以解决上面的问题,请问各位大大,这个$cityid的原始定义时再哪个文件?

duoluozhe 发表于 2012-8-10 15:13:10


$cityid是分站的地区id,你要实现起始地和目的地搜索没必要关联这个,当然如果你要关联分站定义起始地话就需要

zzzx 发表于 2012-8-12 11:22:48


不懂,求共享
http://bbs.destoon.com/static/image/smiley/default/biggrin.gif

http://bbs.destoon.com/static/image/smiley/default/biggrin.gif
页: [1]
查看完整版本: 物流网开发中断之$cityid