Example #1
0
 function linkage($dirs)
 {
     global $DOCUMENT_ROOT;
     if (!count($dirs)) {
         return;
     }
     foreach ($dirs as $path) {
         $dir = opendir($DOCUMENT_ROOT . $path);
         $arr = array();
         $subdirs = array();
         while (($file = readdir($dir)) != false) {
             if ($file != '.' && $file != '..') {
                 $full = $DOCUMENT_ROOT . $path . '/' . $file;
                 if (is_file($full) && eregi(".*\\.php\$", $file)) {
                     $arr[] = $full;
                 }
                 if (is_dir($full)) {
                     $subdirs[] = $path . '/' . $file;
                 }
             }
         }
         array_multisort($arr, SORT_ASC, SORT_STRING);
         array_multisort($subdirs, SORT_ASC, SORT_STRING);
         foreach ($arr as $k) {
             include $k;
         }
         linkage($subdirs);
     }
 }
Example #2
0
echo R;
?>
css/style_address.css">
</head>

<body>
<div class="xiugaiadd_wz">
    <form action="" method="post">
    <table width="100%" border="0" cellspacing="5" cellpadding="5">
        <tr>
            <td colspan="2" style="line-height:32px;"><span class="color_777"> 电话号码、手机选项一项其余为必填项</span></td>
        </tr>
        <tr>
            <td width="120" align="right">所在地区<span class="color_warning">*</span></td>
            <td width="675"><?php 
echo linkage(3, 'myfieldid3', 0);
?>
</td>
        </tr>
        <tr>
            <td align="right">详细地址<span class="color_warning">*</span></td>
            <td><textarea name="address" cols="60" rows="3" class="form-control" placeholder="不需要重复填写省市区,必须大于5个字符,小于120个字符"></textarea></td>
        </tr>
        <tr>
            <td align="right">邮政编码<em class="color_warning">*</em></td>
            <td>
                <input type="text" name="zipcode" id="zipcode" size="36"></td>
        </tr>
        <tr>
            <td align="right">收货人姓名<em class="color_warning">*</em></td>
            <td><input type="text" name="addressee" id="addressee" size="36" placeholder="长度不超过20个字符"></td>
Example #3
0
echo L('no');
?>
 <?php 
echo L('isshow_tips');
?>
</div>
            </div>

			<div class="form-group">
                <label class="col-sm-2 control-label"><?php 
echo L('tag_type');
?>
</label>
                <div class="col-sm-5 input-group">
                    <?php 
echo linkage(output($this->_cache, 'linkage'), 'tag[linkage]');
?>
                </div>
            </div>

			<div class="form-group">
                <label class="col-sm-2 control-label"><?php 
echo L('pinyin');
?>
</label>
                <div class="col-sm-5 input-group">
                    <input type="text" name="tag[pinyin]" class="form-control" id="pinyin" value="<?php 
echo output($tag_info, 'pinyin');
?>
" placeholder="<?php 
echo L('empty_tips');
Example #4
0
}
?>
                            </div>


                            <div role="tabpanel" class="tab-pane fade" id="tabs2" aria-labelledby="2tab">

                                <form name="myform" action="index.php?m=order&f=address&v=add" method="post" id="myform">
                                    <table class="table table-striped table-advance table-hover">
                                        <tr>
                                            <td colspan="2" style="line-height:32px;"><span class="color_777"> 电话号码、手机选项一项其余为必填项</span></td>
                                        </tr>
                                        <tr>
                                            <td width="120" align="right">所在地区<span class="color_warning">*</span></td>
                                            <td width="675"><?php 
echo linkage(1, 'myfieldid1', 0);
?>
</td>
                                        </tr>
                                        <tr>
                                            <td align="right">详细地址<span class="color_warning">*</span></td>
                                            <td><textarea name="address" cols="60" rows="3" class="form-control" placeholder="不需要重复填写省市区,必须大于5个字符,小于120个字符"></textarea></td>
                                        </tr>
                                        <tr>
                                            <td align="right">邮政编码<em class="color_warning">*</em></td>
                                            <td>
                                                <input type="text" name="zipcode" id="zipcode" size="36"></td>
                                        </tr>
                                        <tr>
                                            <td align="right">收货人姓名<em class="color_warning">*</em></td>
                                            <td><input type="text" name="addressee" id="addressee" size="36" placeholder="长度不超过20个字符"></td>
 private function linkage($config, $value)
 {
     extract($config, EXTR_SKIP);
     if ($setting) {
         extract($setting, EXTR_SKIP);
     }
     if (!$value) {
         $value = $defaultvalue;
     }
     if (V == 'add') {
         $value = explode(',', $value);
         $values[1] = $value[0];
         $values[2] = $value[1];
         $values[3] = $this->formdata[$field];
     } else {
         $values[1] = $this->formdata[$field . '_1'];
         $values[2] = $this->formdata[$field . '_2'];
         $values[3] = $this->formdata[$field];
     }
     return linkage($linkageid, 'form[' . $field . ']', 1, $ext_code, $values);
 }
Example #6
0
<?php

/**
 * Gate - Wiki engine and web-interface for WebTester Server
 *
 * IPC main stuff
 *
 * Copyright (c) 2008-2009 Sergey I. Sharybin <*****@*****.**>
 *
 * This program can be distributed under the terms of the GNU GPL.
 * See the file COPYING.
 */
global $IFACE;
if ($IFACE != "SPAWNING NEW IFACE" || $_GET['IFACE'] != '') {
    print 'HACKERS?';
    die;
}
if ($_WT_ipc_included_ != '###WT_IPC_Inclided###') {
    $_WT_ipc_included_ = '###WT_IPC_Inclided###';
    $dirs = array('/inc/logick/tester/ipc');
    linkage($dirs);
    function WT_IPC_CheckLogin()
    {
        global $login, $pass1, $pass2;
        return $login == config_get('WT-IPC-Login') && $pass1 == config_get('WT-IPC-Pass-1') && $pass2 == config_get('WT-IPC-Pass-2');
    }
}
?>
"></div></div></td>
                                    </tr>

                                    <tr>
                                        <td><div class="form-groupinfo"><label class="col-sm-3 control-label text-right"><font color="red">*</font> 邮件地址:</label><div class="col-sm-3 text-left"><input type="text" class="form-control" placeholder="请输入您的邮件地址" datatype="e" nullmsg="请输入您的邮件地址" name="form[email]" id="email" value="<?php 
echo $memberinfo['email'];
?>
"></div></div></td>
                                    </tr>

                                    <tr><td class="tablehead"><h5>团检信息</h5></td></tr>

                                    <tr>
                                        <td><div class="form-groupinfo"><label class="col-sm-3 control-label text-right"><font color="red">*</font> 所在地区:</label><?php 
echo linkage(3, 'myfieldid3', 0, 'datatype="*"  nullmsg="请选择所在地区"');
?>
</div></td>
                                    </tr>

                                    <tr>
                                        <td><div class="form-groupinfo"><label class="col-sm-3 control-label text-right"><font color="red">*</font> 单位名称:</label><div class="col-sm-3 text-left"><input type="text" class="form-control" placeholder="请输入单位名称" datatype="*5-40" nullmsg="请输入单位名称"  name="form[companyname]" id="companyname"></div></div></td>
                                    </tr>

                                    <tr>
                                        <td><div class="form-groupinfo"><label class="col-sm-3 control-label text-right">企业性质:</label><div class="col-sm-3 text-left">
                                            <select name="form[qytype]" class="form-control" style="width:auto;" id="qytype"><option value="0" selected="">请选择企业类型</option><option value="1" >国有企业</option><option value="2">集体所有制企业</option><option value="3">联营企业</option><option value="4">三资企业</option><option value="5">私营企业</option><option value="6">其他企业</option></select></div></div></td>
                                    </tr>
                                    <tr>
                                        <td><div class="form-groupinfo"><label class="col-sm-3 control-label text-right"><font color="red">*</font> 意向体检中心:</label><div class="col-sm-3 text-left">
                                            <select name="form[yixiang]" class="form-control input-sm" datatype="*" nullmsg="请选择意向体检中心">