打印本文 打印本文  关闭窗口 关闭窗口
用PHP和ACCESS写聊天室(八)
作者:采集员 文章来源:来源于网络 点击数: 更新时间:2005/9/10 14:36:21
nbsp; $result=@odbc_exec($ConnID,"SELECT ColorID,ColorName,FontColor FROM Color ORDER BY ColorID");
                while (@odbc_fetch_into($result,0,&$rArr)){
                        if ($sColorID==$rArr[0])
                                echo "t<option style='background-color: #".$rArr[0].";color=#".$rArr[2].";' value='".$rArr[0]."' selected>".$rArr[1]."</option>n";
                        else
                                echo "t<option style='background-color: #".$rArr[0].";color=#".$rArr[2].";' value='".$rArr[0]."'>".$rArr[1]."</option>n";
                }
?>
</select>
&nbsp;动作:<select name="selAction" onchange="PerformAction();">
        <option value='vNone' selected>选择动作</option>
<?php
                if ($id!="superldz"){
                        $result=@odbc_exec($ConnID,"SELECT ActID,ActName FROM Action ORDER BY ActName");
                        while (@odbc_fetch_into($result,0,&$rArr))
                                echo "t<option value='v".trim((string)$rArr[0])."'>".trim($rArr[1])."(".trim((string)$rArr[0]).")</option>n";
                }
?>
</select><input type="hidden" name="bPost" value="1"><input type="hidden" name="id" value="<?php echo $id; ?>"><input type="hidden" name="ps" value="<?php echo $ps; ?>">
</form></center></div>
<?php
                @odbc_close($ConnID);
        }
?>
</body>
</html>


【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】    

上一页  [1] [2] 



打印本文 打印本文  关闭窗口 关闭窗口