$arcRow = $dsql->GetOne($query);
                                                $divname = 'quickEdit';
                                                echo "<div class='title' onmousemove=\"DropMoveHand('{$divname}', 225);\" onmousedown=\"DropStartHand();\" onmouseup=\"DropStopHand();\">\r\n";
                                                echo "    <div class='titLeft'>快速属性编辑</div>\r\n";
                                                echo "    <div class='titRight'><img src='images/ico-close.gif' style='cursor:pointer;' onclick='HideObj(\"{$divname}\");ChangeFullDiv(\"hide\");' alt='关闭' title='关闭' /></div>\r\n";
                                                echo "</div>\r\n";
                                                echo "<form name='quickeditform' action='archives_do.php?dopost=quickEditSave&aid={$aid}' method='post'>\r\n";
                                                echo "<input type='hidden' name='addtable' value='{$arcRow['addtable']}' />\r\n";
                                                echo "<input type='hidden' name='oldtypeid' value='{$arcRow['typeid']}' />\r\n";
                                                echo "<table width='100%' style='margin-top:6px;z-index:9000;'>\r\n";
                                                ?>
<tr height='32'>
    <td width="80" class='bline'>&nbsp;所属栏目:</td>
    <td class='bline'>
        <?php 
                                                $typeOptions = GetOptionList($arcRow['typeid'], $cuserLogin->getUserChannel(), $arcRow['channel']);
                                                echo "<select name='typeid' style='width:70%'>\r\n";
                                                if ($arcRow["typeid"] == "0") {
                                                    echo "<option value='0' selected>请选择栏目...</option>\r\n";
                                                }
                                                echo $typeOptions;
                                                echo "</select>";
                                                ?>
    </td>
</tr>
<tr height='28'>
    <td width="80" class='bline'>&nbsp;属 性:</td>
    <td class='bline'>
    <input type='hidden' name='oldflag' value='<?php 
                                                echo $arcRow['flag'];
                                                ?>
Пример #2
0
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 *  USA.
 *
 *  $Id$
 */
function GetOptionList($instanceid)
{
    global $DB;
    $list = $DB->GetAll('SELECT id, var, value, description, disabled
		FROM daemonconfig
		WHERE instanceid = ?
		ORDER BY var', array($instanceid));
    return $list;
}
$instance = $DB->GetRow('SELECT i.id, hosts.id AS hostid, i.name, hosts.name AS hostname
	FROM daemoninstances i, hosts
	WHERE hosts.id = i.hostid AND i.id = ?', array($_GET['id']));
$layout['pagetitle'] = trans('Configuration of Instance: $a/$b', $instance['name'], '<A href="?m=daemoninstancelist&id=' . $instance['hostid'] . '">' . $instance['hostname'] . '</A>');
$optionlist = GetOptionList($instance['id']);
$SESSION->save('backto', $_SERVER['QUERY_STRING']);
$SMARTY->assign('optionlist', $optionlist);
$SMARTY->assign('instance', $instance);
$SMARTY->display('daemon/daemoninstanceview.html');