123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639 |
- <%@ page pageEncoding="UTF-8"%>
- <%@ page contentType="text/html; charset=UTF-8" language="java" %>
- <%@ page language="java"
- import="java.util.*,
- com.sysmodel.listmodel.xmlmodel.impl.FormListImpl,
- com.sysmodel.datamodel.xmlmodel.ModelFactory,
- com.sysmodel.datamodel.xmlmodel.impl.MdpClassImpl,
- com.sysmodel.datamodel.xmlmodel.able.SysModel,
- com.sysmodel.listmodel.xmlmodel.impl.ListFieldImpl,
- com.sysmodel.datamodel.xmlmodel.impl.MdpAttributeImpl"%>
- <%
- String listid = request.getParameter("listid") == null ? "" : request.getParameter("listid");
- String dataName = request.getParameter("dataName") == null ? "" : request.getParameter("dataName");
- String classid = request.getParameter("classid") == null ? "" : request.getParameter("classid");
- String action = "add";
- String popup = "0";
- String showType = request.getParameter("showType") == null ? "" : request.getParameter("showType");
- String label = request.getParameter("label") == null ? "" : request.getParameter("label");
-
- FormListImpl FormList = null;
- ArrayList tableList = null;
-
- String width = "";
- String url = "";
- String target = "";
- String image = "";
- String showTxt = "";
- String formWidth = "";
- String formHeight = "";
- String remark = "";
-
- int n = 0;
- int m = 0;
- String imageid = "";
-
- if(session.getAttribute("FormList"+listid) == null){
- return;
- } else {
- FormList = (FormListImpl)session.getAttribute("FormList"+listid);
- tableList = FormList.getQueryTables();
- ArrayList listFields = FormList.getQueryList().getlistFields();
- for (int i = 0 ; i < listFields.size() ; i++) {
- ListFieldImpl listFieldImpl = (ListFieldImpl)listFields.get(i);
- String oLabel = listFieldImpl.getLabel()==null?"":listFieldImpl.getLabel();
- if (listFieldImpl.getDataName().equals(dataName) && oLabel.equals(label)){
- width = listFieldImpl.getWidth() == null ? "" : listFieldImpl.getWidth();
- if(width.indexOf("%") != -1){
- StringBuffer rWidth = new StringBuffer(width);
- rWidth.reverse();
- rWidth.deleteCharAt(0);
- rWidth.reverse();
- width = rWidth.toString();
- }
- url = listFieldImpl.getUrl() == null ? "" :listFieldImpl.getUrl();
- target = listFieldImpl.getTarget() == null ? "" :listFieldImpl.getTarget();
- image = listFieldImpl.getImage() == null ? "" :listFieldImpl.getImage();
- showTxt = listFieldImpl.getShowTxt() == null ? "" :listFieldImpl.getShowTxt();
- formWidth = listFieldImpl.getFormWith() == null ? "" :listFieldImpl.getFormWith();
- formHeight = listFieldImpl.getFormHeight() == null ? "" :listFieldImpl.getFormHeight();
- remark = listFieldImpl.getRemark() == null ? "" :listFieldImpl.getRemark();
-
- if (showType.equals("0")){
- if(!dataName.equals("")){
- action = "edit";
- }
- }else if (showType.equals("1")) {
- if(!image.equals("")){
- action = "edit";
- }
- } if (showType.equals("2")) {
- if(!showTxt.equals("")){
- action = "edit";
- }
- }
- if(!image.equals("")){
- n = image.lastIndexOf(".");
- m = image.lastIndexOf("/");
- imageid = image.substring(m+1,n);
- }
- }
- }
-
- }
-
- if (!formWidth.equals("") || !formHeight.equals("")){
- popup = "1";
- }
-
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <HTML>
- <HEAD>
- <TITLE>列属性信息配置页面</TITLE>
- <META http-equiv="Content-Type" content="text/html; charset=GB2312">
- <link rel="stylesheet" href="../../../styles/css.css" type="text/css"></link>
- <link rel="stylesheet" href="../../../styles/style.css" type="text/css"></link>
- <script type="text/javascript" src="../../../scripts/creatselect.js"></script>
- <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
- <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache">
- <META HTTP-EQUIV="Expires" CONTENT="0">
- <style type="text/css">
- ol li { margin:8px}
- #con { font-size:12px; width:100%; margin:0 auto}
- #tags { height:23px; width:99%; margin:0; padding:0; margin-left:10px}
- #tags li { float:left; margin-right:1px; background:url(images/tagleft.gif) no-repeat left bottom; height:23px; list-style-type:none}
- #tags li a { text-decoration:none; float:left; background:url(images/tagright.gif) no-repeat right bottom; height:23px; padding:0px 10px; line-height:23px; color:#999}
- #tags li.emptyTag { width:4px; background:none}
- #tags li.selectTag { background-position: left top; position:relative; height:25px; margin-bottom:-2px}
- #tags li.selectTag a { background-position: right top; color:#000; height:25px; line-height:25px;}
- #tagContent { padding:1px; background-color:#fff; border:1px solid #aecbd4;}
- .tagContent { background:url(images/bg.gif) repeat-x; height:350px; padding:10px; color:#474747; width:576px; display:none}
- #tagContent div.selectTag{ display:block}
- </style>
- <script type="text/javascript" src="../../../scripts/dojo/dojo/dojo.js" djConfig="isDebug: false, parseOnLoad: true"></script>
- <script type="text/javascript">
- dojo.require("dijit.form.ValidationTextBox");
- dojo.require("dijit.form.FilteringSelect");
- dojo.require("dijit.form.NumberSpinner");
- dojo.require("dijit.form.Button");
- // make dojo.toJson() print dates correctly (this feels a bit dirty)
- Date.prototype.json = function(){ return dojo.date.stamp.toISOString(this, {selector: 'date'});};
- </script>
- <style type="text/css">
- @import "../../../scripts/dojo/dojo/resources/dojo.css";
- @import "../../../scripts/dojo/dijit/themes/tundra/tundra.css";
- @import "../../../scripts/dojo/dijit/tests/css/dijitTests.css";
- </style>
- <script type="text/javascript">
- function showPopUp(str){
- var showpopup = document.getElementById("showpopup");
- if(str == '1'){
- showpopup.style.display = "";
- document.myform.formHeight.value = "<%=formHeight%>";
- document.myform.formWidth.value = "<%=formWidth%>";
- }else{
- document.myform.formHeight.value = "";
- document.myform.formWidth.value = "";
- showpopup.style.display = "none";
- }
- }
- function showParticular(str){
- var table = document.getElementById("tableDiv");
- var text = document.getElementById("textDiv");
- var image = document.getElementById("imageDiv");
- if(str == '0'){
- table.style.display = "";
- text.style.display = "none";
- image.style.display = "none";
- }else if(str == '2'){
- text.style.display = "";
- image.style.display = "none";
- table.style.display = "none";
- }else if(str == '1'){
- image.style.display = "";
- text.style.display = "none";
- table.style.display = "none";
- }
- }
- function checkinput(){
- document.forms[0].submit();
- }
-
- function selectShowType(){
- var showType = document.all.showType;
- var str ;
- for (i=0;i<showType.length;i++){
- if(showType[i].checked) str = showType[i].value;
- }
- if (str == "1"){
- var img = document.getElementById("<%=imageid%>");
- selectme(img);
- }
-
- showParticular(str);
- }
- function check(){
- var showType = document.all.showType;
- var str ;
- var strP=/^\d+(\.\d+)?$/;
- var flag = false;
- for (i=0;i<showType.length;i++){
- if(showType[i].checked){
- flag = true;
- str = showType[i].value;
- }
- }
- if (!flag){
- alert("请您选择类型!");
- document.myform.showType.focus();
- return false;
- }else if(flag){
- if(str == "0"){
- if(document.myform.classid.value == 0 || document.myform.classid.value == ""){
- alert("请您选择数据表!");
- document.myform.showType.focus();
- return false;
- }else if(document.myform.dataName.value == 0 || document.myform.dataName.value == ""){
- alert("请您选择字段!");
- document.myform.dataName.focus();
- return false;
- }else if(document.myform.label1.value == 0 || document.myform.label1.value == ""){
- alert("请您录入标题!");
- document.myform.label1.focus();
- return false;
- }
- }else if(str == "1"){
- if(document.myform.image.value == "/nwyj/admin/images/tool/nothing.gif"){
- alert("请您选择图片!");
- document.myform.image.focus();
- return false;
- }else if(document.myform.label3.value == 0 || document.myform.label3.value == ""){
- alert("请您录入标题!");
- document.myform.label3.focus();
- return false;
- }
- }else if(str == "2"){
- if(document.myform.showTxt.value == 0 || document.myform.showTxt.value == ""){
- alert("请您录入文本名!");
- document.myform.showTxt.focus();
- return false;
- }else if(document.myform.label2.value == 0 || document.myform.label2.value == ""){
- alert("请您录入标题!");
- document.myform.label2.focus();
- return false;
- }
- }
- }
-
- if(document.myform.width.value != "") {
- if(!strP.test(document.myform.width.value)){
- alert("列宽为数字格式!");
- document.myform.width.focus();
- return false;
- }
- }
-
- if(document.myform.formWidth.value != "") {
- if(!strP.test(document.myform.formWidth.value)){
- alert("页面宽为数字格式!");
- document.myform.width.focus();
- return false;
- }
- }
-
- if(document.myform.formHeight.value != "") {
- if(!strP.test(document.myform.formHeight.value)){
- alert("页面高为数字格式!");
- document.myform.width.focus();
- return false;
- }
- }
- document.forms[0].submit();
- }
-
- function getTable_Dojo(obj,selectName,gettype){
- if(obj.getValue()=="")return;
- var strA = "";
- createXMLHttpRequest();
- axo = new ActiveXObject("Microsoft.XMLDOM");
- XMLHttpReq.open("POST","getAttributeXml.jsp?classid="+obj.getValue()+"&gettype="+gettype,false);
- XMLHttpReq.setRequestHeader("Content-Length",strA.length);
- XMLHttpReq.setRequestHeader("Content-type","application/x-www-form-urlencoded");
- XMLHttpReq.send(strA);
- axo.loadXML(XMLHttpReq.responseText);
- n1 = axo.selectNodes("/root/name");
- n2 = axo.selectNodes("/root/description");
-
- BuildSel(unescape(XMLHttpReq.responseText),selectName, n1, n2);
- }
-
- </script>
- </HEAD>
- <body class="tundra" onLoad="showParticular('<%=showType %>');showPopUp(<%=popup %>);">
- <%
- int imgWidth=64;
- int imgHeight=64;
- int selecteSize = 3;
-
- String selectedPic = "nothing";
- if(!imageid.equals("")){
- selectedPic = imageid;
- }
- %>
- <form name="myform" action="tierExc.jsp" method="post">
- <input type="hidden" name="listid" value="<%=listid %>">
- <input type="hidden" name="action" value="<%=action %>">
- <input type="hidden" name="oDataName" value="<%=dataName %>">
- <input type="hidden" name="oLabel" value="<%=label %>">
- <div id=total>
- <div class="whiteborder">
- <div class="titback">
- <div class="floatleft"><img src="../../../images/index/arrow1.gif" width="20" height="24"/></div>
- <div class="dropshadow">列属性信息配置</div>
- <div class="clear"></div>
- </div>
- <div class="report">
- <div id="con">
- <div id="tagContent" width="100%" height="100%">
- <div id="tagContent0" class="tagContent selectTag">
- <table align="left" id="SortTable512_1" width="100%" cellpadding="1" cellspacing="1" class="ltab2">
- <tr>
- <td width="15%" align="right">类型 </td>
- <td width="85%" align="left">
- <input type="radio" name="showType" value="0" onclick="showParticular('0');" <%if(showType.equals("0"))out.print("checked") ;%>>表数据
- <input type="radio" name="showType" value="2" onclick="showParticular('2');" <%if(showType.equals("2"))out.print("checked") ;%>>文本
- <input type="radio" name="showType" value="1" onclick="showParticular('1');" <%if(showType.equals("1"))out.print("checked") ;%>>图片 <font color="red">*</font>
- </td>
- </tr>
-
-
-
- <tr>
- <td align="left" colspan="2" width="100%">
- <div id="tableDiv" align="left" width="100%" align="right" style="display:none">
- <table align="center" frame="box" rules="none" style="border: 1; solid:#FF0000" width="90%" cellpadding="1" cellspacing="1" class="ltab2">
- <tr>
- <td width="20%" align="right">数据表 </td>
- <td width="80%" align="left">
- <select dojoType="dijit.form.FilteringSelect" onChange="getTable_Dojo(this, document.all.dataName,'all')" required="false" name="classid" id="classid" autocomplete="true">
- <option value="0">-请选择-</option>
- <%
- for(int i = 0 ; i < tableList.size(); i ++){
- int iclassid = Integer.parseInt((String)tableList.get(i));
- SysModel sysmodel = ModelFactory.getSysmodel();
- MdpClassImpl MdpClass = (MdpClassImpl)sysmodel.getMdpClassByClassID(iclassid);
- %>
- <option value="<%=iclassid %>" <%if(classid.equals((String)tableList.get(i)))out.print("selected"); %>><%=MdpClass.getDescription()%></option>
- <%}%>
- </select> <font color="red">*</font>
- </td>
- </tr>
- <tr>
- <td align="right">字段 </td>
- <td align="left">
- <select name="dataName">
- <option value=""></option>
- <%
- if(!dataName.equals("") && (!classid.equals("0"))){
- SysModel sysmodel = ModelFactory.getSysmodel();
- MdpClassImpl MdpClass = (MdpClassImpl)sysmodel.getMdpClassByClassID(Integer.parseInt(classid));
- ArrayList list = (ArrayList)MdpClass.getAllMdpAttributes();
- for(int i = 0 ; i < list.size(); i ++){
- MdpAttributeImpl MdpAttribute = (MdpAttributeImpl) list.get(i);
- %>
- <option value="<%=MdpAttribute.getName() %>" <%if(dataName.equals(MdpAttribute.getName()))out.print("selected") ;%>><%=MdpAttribute.getDescription()%></option>
- <%}}%>
- </select> <font color="red">*</font>
- </td>
- </tr>
- <tr>
- <td align="right">列标题 </td>
- <td align="left" clospan="3">
- <input type="text" value="<%=label %>"
- id="label1" name="label1" class="medium"
- dojoType="dijit.form.ValidationTextBox"
- required="true"
- ucfirst="true"
- invalidMessage="">
- <font color="red">*</font>
- </td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- <tr>
- <td align="left" colspan="2" width="100%">
-
- <div id="textDiv" style="display:none">
- <table align="center" frame="box" rules="none" style="border: 1; solid:#FF0000" width="90%" cellpadding="1" cellspacing="1" class="ltab2">
- <tr>
- <td width="15%" align="right">文本名 </td>
- <td width="85%" align="left" clospan="3">
- <input type="text" value="<%=showTxt %>"
- id="showTxt" name="showTxt" class="medium"
- dojoType="dijit.form.ValidationTextBox"
- required="true"
- ucfirst="true"
- invalidMessage="">
- <font color="red">*</font>
- </td>
- </tr>
- <tr>
- <td align="right">列标题 </td>
- <td align="left" clospan="3">
- <input type="text" value="<%=label %>"
- id="label2" name="label2" class="medium"
- dojoType="dijit.form.ValidationTextBox"
- required="true"
- ucfirst="true"
- invalidMessage="">
- <font color="red">*</font></td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
- <tr>
- <td align="left" colspan="2" width="100%">
- <div id="imageDiv" style="display:none">
- <table align="center" frame="box" rules="none" style="border: 1; solid:#FF0000" width="90%" cellpadding="1" cellspacing="1" class="ltab2">
- <tr>
- <td width="15%" align="right">图片 </td>
- <td width="85%" align="left" clospan="3">
- <SPAN onMouseOver="isin=true" onMouseOut="isin=false">
- <table width="1" onClick="showlist(this)" border="0" cellspacing="0">
- <tr>
- <td><img name="imgselected" border='1' src="../../../images/tool/<%=selectedPic %>.gif" WIDTH='64' HEIGHT='64'></td>
- <td valign=top><img src="../../../images/button/menu.gif"> <font color="red">*</font></td>
- </tr>
- </table>
- <DIV onscroll="scrollud()" id="imgBox" style="z-index:2000 ;position:absolute; left=-800;top=0; background-color:#FFFFFF; border: 1px; solid #000000;overflow-x:hidden;overflow-y:scroll;width:84px; height:<%=(imgHeight * selecteSize) %>px">
- <img listID="nothing" id="nothing" src="../../../images/tool/nothing.gif" width="64" height="64" onclick='selectme(this)' onload='if(init)init()'></img><BR>
- <img listID="checkbox" id="checkbox" src="../../../images/tool/checkbox.gif" width="64" height="64" onclick='selectme(this)' onload='if(init)init()'></img><BR>
- <img listID="date" id="date" src="../../../images/tool/date.gif" width="64" height="64" onclick='selectme(this)' onload='if(init)init()'></img><BR>
- <img listID="radio" id="radio" src="../../../images/tool/radio.gif" width="64" height="64" onclick='selectme(this)' onload='if(init)init()'></img><BR>
- <img listID="select" id="select" src="../../../images/tool/select.gif" width="64" height="64" onclick='selectme(this)' onload='if(init)init()'></img><BR>
- <img listID="text"id="text" src="../../../images/tool/text.gif" width="64" height="64" onclick='selectme(this)' onload='if(init)init()'></img><BR>
- <img listID="table_del" id="table_del" src="../../../images/tool/table_del.gif" width="64" height="64" onclick='selectme(this)' onload='if(init)init()'></img><BR>
- </DIV>
- </SPAN>
- <input name="image" type="text" id="myface" size="50" value="<%=image %>">
- </td>
- </tr>
- <tr>
- <td align="right">列标题 </td>
- <td align="left" clospan="3">
- <input type="text" value="<%=label %>"
- id="label3" name="label3" class="medium"
- dojoType="dijit.form.ValidationTextBox"
- required="true"
- ucfirst="true"
- invalidMessage="">
- <font color="red">*</font></td>
- </tr>
- </table>
- </div>
-
- </td>
- </tr>
- <tr>
- <td align="right">列宽 </td>
- <td align="left">
- <input dojotype="dijit.form.NumberSpinner"
- id="width" name="width"
- value="<%=width %>"
- required="false"
- constraints="{min: 0, max:100, places:0}"
- size=10
- invalidMessage="配置编号必须录入数字!(ex: 23)">
- %</td>
- </tr>
- <tr>
- <td align="right">链接 </td>
- <td align="left">
- <input type="text" value="<%=url %>"
- id="url" name="url" class="medium"
- dojoType="dijit.form.ValidationTextBox"
- required="false"
- ucfirst="true"
- invalidMessage="">
- </td>
- </tr>
- <tr>
- <td align="right">target </td>
- <td align="left">
- <input type="text" value="<%=target %>"
- id="target" name="target" class="medium"
- dojoType="dijit.form.ValidationTextBox"
- required="false"
- ucfirst="true"
- invalidMessage="">
- </td>
- </tr>
- <tr>
- <td align="right">是否弹出</td>
- <td align="left" >
- <input type="radio" name="popup" value="1" onclick="showPopUp('1')" <%if(popup.equals("1"))out.print("checked"); %>>是
- <input type="radio" name="popup" value="0" onclick="showPopUp('0')" <%if(popup.equals("0"))out.print("checked"); %>>否
- </td>
- </tr>
- <tr>
- <td align="left" colspan="2" width="100%">
- <div width="100%" id="showpopup" style="display:none">
- <table align="center" id="SortTable512_1" frame="box" rules="none" style="border: 1; solid:#FF0000" width="90%" cellpadding="1" cellspacing="1" class="ltab2">
- <tr>
- <td width="15%" align="right">页面宽 </td>
- <td width="85%" align="left">
- <input type="text" value="<%=formWidth %>"
- id="formWidth" name="formWidth" class="medium"
- dojoType="dijit.form.ValidationTextBox"
- required="false"
- ucfirst="true"
- invalidMessage="">
- %</td>
- </tr>
- <tr>
- <td align="right">页面高 </td>
- <td align="left">
- <input type="text" value="<%=formHeight %>"
- id="formHeight" name="formHeight" class="medium"
- dojoType="dijit.form.ValidationTextBox"
- required="false"
- ucfirst="true"
- invalidMessage="">
- %</td>
- </tr>
- </table>
- </div>
- </td>
- </tr>
-
- </table>
- </div>
- </div>
- </div>
- </div>
- <div class="btmbox">
- <button id="save" dojoType="dijit.form.Button" onClick='check();' type="button" iconClass="plusIcon">
- 保存
- </button>
- <span dojoType="dijit.Tooltip" connectId="save">保存按钮</span>
- <button id="reset" dojoType="dijit.form.Button" onClick='document.form1.reset();' type="button" iconClass="plusIcon">
- 重置
- </button>
- <span dojoType="dijit.Tooltip" connectId="save">重置按钮</span>
- <button id="close" dojoType="dijit.form.Button" onClick='window.close();' type="button" iconClass="plusIcon">
- 关闭
- </button>
- <span dojoType="dijit.Tooltip" connectId="save">关闭按钮</span>
- </div>
- </div>
- </div>
- </form>
- <script language="JavaScript">
- var imgSrc ="/nwyj/admin/images/tool/数字序号.gif";
- var imgWidth=<%=imgWidth%>;
- var imgHeight=<%=imgHeight%>;
-
- function showlist(obj){
-
- if(imgBox.style.pixelLeft!=-800){imgBox.style.pixelLeft=-800; return;}
-
-
- var mytop=obj.offsetTop;
- var myleft=obj.offsetLeft;
-
- while(obj=obj.offsetParent){
- myleft+=obj.offsetLeft;
- mytop+=obj.offsetTop;
- }
-
- imgBox.style.left=myleft;
- imgBox.style.top=mytop+imgHeight+2;
-
- }
-
- var isin=false;
- function selectme(obj){
-
- if(!isin||obj){imgBox.style.pixelLeft=-800;}
- if(obj){
-
- myform.image.value=imgSrc.replace("数字序号",obj.listID);
- document.images["imgselected"].src=imgSrc.replace("数字序号",obj.listID);
-
- }
- }
-
-
-
- var mytime=setTimeout("",0);
- var pre_X=0;
-
-
-
- function scrollud(){
- var current_X=imgBox.scrollTop;
-
- if(current_X>pre_X && imgBox.scrollTop< Math.ceil(imgBox.scrollTop/imgHeight)*imgHeight){
- clearTimeout(mytime);
- mytime=setTimeout("imgBox.scrollTop=Math.round(imgBox.scrollTop+1);",1);
- }
- else if(current_X<pre_X && imgBox.scrollTop> Math.floor(imgBox.scrollTop/imgHeight)*imgHeight){
- clearTimeout(mytime);
- mytime=setTimeout("imgBox.scrollTop=Math.round(imgBox.scrollTop-1);",1);
- }
- pre_X=current_X;
- }
-
-
- function init(){
- myform.image.value=imgSrc.replace("数字序号","<%=selectedPic%>");
- }
-
-
- myActivation="selectme(null)";
- if(document.body.onclick){
- eval(document.body.onclick.toString().replace('anonymous()','bodyclick()'));
- document.body.onclick=new Function("bodyclick();"+myActivation);
- }
- else
- document.body.onclick=new Function(myActivation);
-
- //-->
- function selectTag(showContent,selfObj){
-
- var tag = document.getElementById("tags").getElementsByTagName("li");
- var taglength = tag.length;
- for(i=0; i<taglength; i++){
- tag[i].className = "";
- }
- selfObj.parentNode.className = "selectTag";
-
- for(i=0; j=document.getElementById("tagContent"+i); i++){
- j.style.display = "none";
- }
- document.getElementById(showContent).style.display = "block";
- }
- </script>
- </BODY>
- </HTML>
|