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


PHP makeselect函数代码示例

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


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

示例1: makeselect

function makeselect($album, $level)
{
    //print out the list item as a select option
    ?>
  <option value="<?php 
    echo item::root()->url();
    echo $album->relative_url();
    ?>
"><?php 
    echo str_repeat("&nbsp;&nbsp;", $level);
    echo html::purify($album->title);
    ?>
</option>
<?php 
    //recurse over the children, and print their list items as well
    foreach ($album->viewable()->children(null, null, array(array("type", "=", "album"))) as $child) {
        makeselect($child, $level + 1);
    }
}
开发者ID:webmatter,项目名称:gallery3-contrib,代码行数:19,代码来源:albumtree_block_select.html.php

示例2: listnumber_view

    //显示暂时的单据编号
    $listno = listnumber_view("8");
}
//查询帐户下拉框
$query = "select * from tb_account where fd_account_isstop = '0'";
$db->query($query);
if ($db->nf()) {
    while ($db->next_record()) {
        $arr_accid[] = $db->f(fd_account_id);
        $arr_acc[] = $db->f(fd_account_name);
    }
}
$accountid = makeselect($arr_acc, $accountid, $arr_accid);
$arr_clienttype = array("客户", "供应商");
$arr_clientid = array("1", "2");
$clienttype = makeselect($arr_clienttype, $clienttype, $arr_clientid);
$t->set_var("listid", $listid);
//单据id
$t->set_var("id", $id);
//id
$t->set_var("listno", $listno);
//单据编号
$t->set_var("cusname", $cusname);
//客户名称
$t->set_var("cusno", $cusno);
//客户编号
$t->set_var("cusid", $cusid);
//客户id号
$t->set_var("clienttype", $clienttype);
//客户类型
$t->set_var("staname", $loginstaname);
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:inmoneylist_view_b.php

示例3: urlencode

    $count++;
    $value['count'] = $count;
    $value['arrivemode'] = "T+" . $value['arrivemode'];
    $all_paymoney += $value['paymoney'];
    $all_payfee += $value['payfee'];
    $all_money += $value['money'];
    $t->set_var($value);
    $t->parse("prolists", "prolist", true);
}
if (empty($arr_result)) {
    $t->parse("prolists", "", true);
}
$querywhere = urlencode($querywhere);
$arr_temp = array("-请选择-", "单据编号", "银行交易流水号", "客户名称");
$arr_temp2 = array("", "fd_agpm_no", "fd_agpm_bkntno", "fd_author_truename");
$condition = makeselect($arr_temp, $sel_condit, $arr_temp2);
$all_paymoney = number_format($all_paymoney, 2, ".", "");
$all_payfee = number_format($all_payfee, 2, ".", "");
$all_money = number_format($all_money, 2, ".", "");
$t->set_var("pagenav", $pagenav);
//分页变量
$t->set_var("brows_rows", $brows_rows);
$t->set_var("conditions", $condition);
$t->set_var("txtCondit", $txtCondit);
$t->set_var("listid", $listid);
//单据id
$t->set_var("payorin", $payorin);
//付款还是收款
$t->set_var("count", $count);
$t->set_var("all_paymoney", $all_paymoney);
$t->set_var("all_payfee", $all_payfee);
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:selagentbkno.php

示例4: left

$city_tmp = $sdcr_citycode;
$query = "select * from tb_city where left(fd_city_code,2) = '{$provinces_tmp}'\n          order by fd_city_code asc";
$db->query($query);
if ($db->nf()) {
    while ($db->next_record()) {
        $arr_city_code[] = $db->f(fd_city_code);
        $arr_city_name[] = $db->f(fd_city_name);
        if ($sdcr_citycode == $db->f(fd_city_code)) {
            $tmpaddress .= $db->f(fd_city_name);
        }
    }
}
$sdcr_citycode = makeselect($arr_city_name, $sdcr_citycode, $arr_city_code);
$arr_activeid = array("0", "1");
$arr_activename = array("否", "是");
$sdcr_active = makeselect($arr_activename, $sdcr_active, $arr_activeid);
$t->set_var("listid", $listid);
$t->set_var("sdcr_name", $sdcr_name);
$t->set_var("sdcr_merid", $sdcr_merid);
$t->set_var("sdcr_securitykey", $sdcr_securitykey);
$t->set_var("sdcr_provcode", $sdcr_provcode);
$t->set_var("agentfee", $agentfee);
$t->set_var("payfee", $payfee);
$t->set_var("minpayfee", $minpayfee);
$t->set_var("sdcr_provcode", $sdcr_provcode);
$t->set_var("sdcr_citycode", $sdcr_citycode);
$t->set_var("sdcr_active", $sdcr_active);
$t->set_var("tradeurl", $tradeurl);
$t->set_var("queryurl", $queryurl);
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:sendcenter.php

示例5: while

        $readonly = "readonly";
        $checked = $transfermoneysetfee ? "disabled=disabled" : "checked ";
        $display = "style='display:none'";
    }
}
$query = "select * from tb_bank";
$db->query($query);
if ($db->nf()) {
    while ($db->next_record()) {
        $arr_bankid[] = $db->f(fd_bank_id);
        $arr_bankname[] = $db->f(fd_bank_name);
    }
}
$bankname = makeselect($arr_bankname, $bankid, $arr_bankid);
$arr_modename = array("实时", "T+1(自然日)", "T+1(工作日)", "T+2(工作日)", "T+2(自然日)", "T+3(工作日)");
$transfermoneysetmode = makeselect($arr_modename, $transfermoneysetmode, $arr_modename);
$t->set_var("display", $display);
$t->set_var("checked", $checked);
$t->set_var("readonly", $readonly);
$t->set_var("disabled", $disabled);
$t->set_var("transfermoneysetid", $transfermoneysetid);
$t->set_var("bankname", $bankname);
$t->set_var("transfermoneysetfee", $transfermoneysetfee);
$t->set_var("transfermoneysetmode", $transfermoneysetmode);
$t->set_var("arrivetime", $arrivetime);
$t->set_var("error", $error);
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
// 转用的地址
// 判断权限
include "../include/checkqx.inc.php";
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:paycard.php

示例6: array

//民族下拉菜单
$arr_nation = array('汉族', '藏族', '朝鲜族', '蒙古族', '回族', '满族', '维吾尔族', '壮族', '彝族', '苗族', '其它民族');
$nation = makeselect($arr_nation, $nation, $arr_nation);
//政治面貌下拉菜单
$arr_politics = array('中共党员', '团员', '群众');
$polity = makeselect($arr_politics, $polity, $arr_politics);
//学历下拉菜单
$arr_degree = array('博士', '研究生', '本科', '大专', '高中', '中专', '职中', '初中', '小学');
$degree = makeselect($arr_degree, $degree, $arr_degree);
//学位下拉菜单
$arr_degreexw = array("博士后", "博士", "硕士", "学士");
$degreexw = makeselect($arr_degreexw, $degreexw, $arr_degreexw);
//重新录用下拉菜单
$arr_rehire = array('否', '是');
$arr_rehire_val = array(1, 2);
$rehire = makeselect($arr_rehire, $rehire, $arr_rehire_val);
$t->set_var("iframe", $iframe);
$t->set_var("id", $id);
$t->set_var("staffno", $staffno);
$t->set_var("name", $name);
$t->set_var("ename", $ename);
$t->set_var("sex", $sex);
$t->set_var("deptid", $deptid);
$t->set_var("duty", $duty);
$t->set_var("driver", $driver);
$t->set_var("worktype", $worktype);
$t->set_var("birthday", $birthday);
$t->set_var("degree", $degree);
$t->set_var("group", $group);
$t->set_var("zhichengid", $zhichengid);
$t->set_var("homememo", $homememo);
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:staffer.php

示例7: makeselect

        $arr_bkcardpayfsetid[] = $db->f(fd_payfset_id);
        $arr_bkcardpayfset[] = $db->f(fd_payfset_name);
    }
}
$bkcardpayfsetid = makeselect($arr_bkcardpayfset, $bkcardpayfsetid, $arr_bkcardpayfsetid);
$arr_sdcrid[] = "";
$arr_sdcrname[] = "--选择所属刷卡公司--";
$query = "select * from tb_sendcenter where fd_sdcr_active = '1' ";
$db->query($query);
if ($db->nf()) {
    while ($db->next_record()) {
        $arr_sdcrid[] = $db->f(fd_sdcr_id);
        $arr_sdcrname[] = $db->f(fd_sdcr_name);
    }
}
$sdcrid = makeselect($arr_sdcrname, $sdcrid, $arr_sdcrid);
$t->set_var("sdcrid", $sdcrid);
$t->set_var("slotscdmsetid", $slotscdmsetid);
$t->set_var("slotpayfsetid", $slotpayfsetid);
$t->set_var("auindustryid", $auindustryid);
$t->set_var("bkcardscdmsetid", $bkcardscdmsetid);
$t->set_var("bkcardpayfsetid", $bkcardpayfsetid);
$oFCKeditor = new FCKeditor('FCKeditor1');
$oFCKeditor->BasePath = '../FCKeditor/';
$oFCKeditor->ToolbarSet = 'Normal';
$oFCKeditor->Wlistidth = '568';
$oFCKeditor->Height = '440';
$oFCKeditor->Value = $content;
$fckeditor = $oFCKeditor->CreateHtml();
$t->set_var("sdcrid", $sdcrid);
$t->set_var("listid", $listid);
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:author_stop.php

示例8: while

        //客户id
        $idcard = $db->f(fd_saler_idcard);
        $phone = $db->f(fd_saler_phone);
        $username = $db->f(fd_saler_username);
        $salerlevel = $db->f(fd_saler_level);
    }
}
$query = "select * from tb_salerlevel ";
$db->query($query);
if ($db->nf()) {
    while ($db->next_record()) {
        $arr_salerlevelid[] = $db->f(fd_salerlevel_id);
        $arr_salerlevelname[] = $db->f(fd_salerlevel_name);
    }
}
$salerlevel = makeselect($arr_salerlevelname, $salerlevel, $arr_salerlevelid);
$checkall = '<INPUT onclick=CheckAll() type=checkbox class=checkbox value=on name=chkall>';
$arr_text = array("真实姓名", "身份证", "刷卡器数量", "网导等级", "状态", "登录名", "手机号码", "编辑修改");
for ($i = 0; $i < count($arr_text); $i++) {
    $theadth .= ' <th>' . $arr_text[$i] . '</th>';
    $tfoot .= ' <input type="checkbox" value="1" size="1" class="checkbox" checked="checked" onClick="fnShowHide(' . $i . ');">' . $arr_text[$i];
}
$t->set_var("truename", $truename);
$t->set_var("idcard", $idcard);
$t->set_var("id", $id);
$t->set_var("salerlevel", $salerlevel);
$t->set_var("phone", $phone);
$t->set_var("theadth", $theadth);
$t->set_var("checktype2", $checktype2);
$t->set_var("checktype1", $checktype1);
$t->set_var("username", $username);
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:salersp.php

示例9: while

$db->query($query);
if ($db->nf()) {
    $db->next_record();
    $bkcardscdmset = $db->f(fd_scdmset_name);
}
$arr_authortypeid[] = "";
$arr_authortype[] = "--选择商户分类--";
$query = "select * from tb_authortype ";
$db->query($query);
if ($db->nf()) {
    while ($db->next_record()) {
        $arr_authortypeid[] = $db->f(fd_authortype_id);
        $arr_authortype[] = $db->f(fd_authortype_name);
    }
}
$authortypeid = makeselect($arr_authortype, $authortypeid, $arr_authortypeid);
if ($couponstate == 1) {
    $couponstatedis1 = "disabled";
}
if ($couponstate == 0) {
    $error = "抵用券落地账户还没有审批,请审批";
}
if ($couponstate == 2) {
    $couponstatedis2 = "disabled";
}
$t->set_var("couponstatedis2", $couponstatedis2);
$t->set_var("couponstatedis1", $couponstatedis1);
$t->set_var("sdcrname", $sdcrname);
$t->set_var("slotscdmset", $slotscdmset);
$t->set_var("slotpayfset", $slotpayfset);
$t->set_var("bkcardscdmset", $bkcardscdmset);
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:author.php

示例10: while

    while ($db->next_record()) {
        $arr_bankid[] = $db->f(fd_bank_id);
        $arr_bankname[] = $db->f(fd_bank_name);
    }
}
$bankname = makeselect($arr_bankname, $bankid, $arr_bankid);
$moneyqj = getmoneyqj(1, $moneyqj);
$query = "select * from  tb_arrive ";
$db->query($query);
if ($db->nf()) {
    while ($db->next_record()) {
        $arr_arriveid[] = $db->f(fd_arrive_id);
        $arr_arrivename[] = $db->f(fd_arrive_name);
    }
}
$creditcsetmode = makeselect($arr_arrivename, $creditcsetmode, $arr_arriveid);
$t->set_var("checked", $checked);
$t->set_var("creditcsetid", $creditcsetid);
$t->set_var("bankname", $bankname);
$t->set_var("creditcsetfee", $creditcsetfee);
$t->set_var("creditcsetmode", $creditcsetmode);
$t->set_var("moneyqj", $moneyqj);
$t->set_var("error", $error);
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
// 转用的地址
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "creditcardset");
# 最后输出页面
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:creditcardset.php

示例11: while

if ($db->nf()) {
    while ($db->next_record()) {
        $arr_bankid[] = $db->f(fd_bank_id);
        $arr_bankname[] = $db->f(fd_bank_name);
    }
}
$bankname = makeselect($arr_bankname, $bankid, $arr_bankid);
$query = "select * from  tb_arrive ";
$db->query($query);
if ($db->nf()) {
    while ($db->next_record()) {
        $arr_arriveid[] = $db->f(fd_arrive_id);
        $arr_arrivename[] = $db->f(fd_arrive_name);
    }
}
$arrivetime = makeselect($arr_arrivename, $arrivetime, $arr_arriveid);
$t->set_var("moneyqj", $moneyqj);
$t->set_var("checked", $checked);
$t->set_var("repaymoneysetid", $repaymoneysetid);
$t->set_var("bankname", $bankname);
$t->set_var("repaymoneysetfee", $repaymoneysetfee);
$t->set_var("tradememo", $tradememo);
$t->set_var("arrivetime", $arrivetime);
$t->set_var("error", $error);
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
// 转用的地址
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
$t->pparse("out", "repaymoneyset");
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:repaymoneyset.php

示例12: while

if ($db->nf()) {
    while ($db->next_record()) {
        $arr_mobileid[] = $db->f(fd_mobile_id);
        $arr_mobilename[] = $db->f(fd_mobile_name);
    }
}
$mobileid = makeselect($arr_mobilename, $mobileid, $arr_mobileid);
$query = "select * from  tb_appmenu where fd_appmenu_active = '1' order by fd_appmnu_id ";
$db->query($query);
if ($db->nf()) {
    while ($db->next_record()) {
        $arr_appmnuid[] = $db->f(fd_appmnu_id);
        $arr_appmnuname[] = $db->f(fd_appmnu_name);
    }
}
$appmnuid = makeselect($arr_appmnuname, $appmnuid, $arr_appmnuid);
$t->set_var("listid", $listid);
$t->set_var("listid", $listid);
$t->set_var("mobileid", $mobileid);
$t->set_var("date", $date);
$t->set_var("appmnuid", $appmnuid);
$t->set_var("testcount", $testcount);
$t->set_var("yescount", $yescount);
$t->set_var("tester", $tester);
$t->set_var("memo", $memo);
$t->set_var("error", $error);
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
// 转用的地址
// 判断权限
include "../include/checkqx.inc.php";
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:mobiletest.php

示例13: makeselect

		<tr class="head">
			<td colspan="3" align="center">添加广告</td>
		</tr>
		<tr class="b" nowrap>
			<td>广告标题:</td>
			<td colspan="2"><input type="text" name="title" id="title" size="50" maxlength="80" value="">&nbsp;&nbsp;&nbsp;&nbsp;广告位置:<?php 
echo makeselect(array('name' => 'adlocation', 'option' => $adlocations, 'selected' => 'A'));
?>
</td>
		</tr>
		<tr class="b" nowrap>
			<td>广告链接:</td>
			<td colspan="2"><input type="text" name="url" id="url" size="70" maxlength="80" value=""><i>eg:http://www.example.com/ad.html</i>&nbsp;&nbsp;需带http://</td>
		</tr>
		<tr class="b" nowrap>
			<td>广告时效:</td>
			<td colspan="2"><?php 
echo makeselect(array('name' => 'exptime', 'option' => $exptimes, 'selected' => '2592000'));
?>
</td>
		</tr>
		<tr class="b" nowrap>
			<td>是否图片:</td>
			<td width="1%"><input type="checkbox" id="isimgad" value="1" name="isimgad" onclick="isimg()"></td>
			<td><input type="file"  id="img" name="img" style="display:none;"></td>
		</tr>
		</table>
<br /><center><input type="submit" name="submit" value="提交"></center>
	</form>
</body>
</html>
开发者ID:haseok86,项目名称:millkencode,代码行数:31,代码来源:ad_manager.php

示例14: array

            $bgcolor = "#F1F4F9";
            $s = 0;
        } else {
            $bgcolor = "#ffffff";
            $s = 1;
        }
        $t->set_var(array("trid" => $trid, "imgid" => $imgid, "vid" => $vid, "count" => $count, "vquantity" => $vquantity, "vpaycardid" => $vpaycardid, "vmemo" => $vmemo, "bgcolor" => $bgcolor, "vprice" => $vprice, "rowcount" => $count, "vmoney" => $vmoney, "vproductid" => $vproductid));
        $t->parse("prolists", "prolist", true);
    }
} else {
    $t->parse("prolists", "", true);
}
//收款方式
$arr_skfs = array("现金", "支票", "电汇", "承兑", "在线支付");
$arr_skfsval = array("1", "2", "3", "4", "5");
$skfs = makeselect($arr_skfs, $skfs, $arr_skfsval);
/* //查询客户的受信额度
$query = "select fd_cus_credit , fd_cus_custypeid from tb_customer where fd_cus_id = '$cusid'";
$db->query($query);
if ($db->nf()) {
	$db->next_record();
	$cus_credit = $db->f(fd_cus_credit);
	$cus_typeid = $db->f(fd_cus_custypeid);
	if (empty ($error) && $cus_typeid == 4) {
		$error = "这个客户已经被总部列入黑名单!请注意!";
	}
} */
$vallmoney = number_format($vallmoney, 2, ".", "");
$t->set_var("listid", $listid);
//单据id
$t->set_var("id", $id);
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:jxcsale_sp.php

示例15: array

        //菜单图片路径
        $sno = $db->f(fd_menu_sno);
        //菜单sno
        $hz = $db->f(fd_menu_hz);
        //菜单hz
        $active = $db->f(fd_menu_active);
        //菜单的激活状态
        $url = $db->f(fd_menu_url);
        //菜单的url
        $action = "edit";
    }
}
//生成chgpass选择
$arr_active = array("是", "否");
$arr_valueactive = array("1", "0");
$active = makeselect($arr_active, $active, $arr_valueactive);
$t->set_var("id", $id);
$t->set_var("name", $name);
$t->set_var("code", $code);
$t->set_var("upcode", $upcode);
$t->set_var("jpg", $jpg);
$t->set_var("sno", $sno);
$t->set_var("url", $url);
$t->set_var("hz", $hz);
$t->set_var("active", $active);
$t->set_var("action", $action);
$t->set_var("gotourl", $gotourl);
// 转用的地址
// 判断权限
include "../include/checkqx.inc.php";
$t->set_var("skin", $loginskin);
开发者ID:Xiaoyuyexi,项目名称:client-server,代码行数:31,代码来源:menu.php


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