edsonwu

导航

乱七八糟的

 

 <script type="text/javascript">

        EditBoxID = "editBox";                       

</script>    

<link href="<%= ZPath.ScriptsURI %>jQuery/jquery.tabs/Styles/jquery.ui.tabs.css"         rel="stylesheet" type="text/css" />    

<asp:ContentPlaceHolder ID="head" runat="server">     </asp:ContentPlaceHolder> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolder" runat="Server">     <form id="form1" runat="server" onsubmit="return OnEditSubmit();">     <div id="editBox">         <asp:ContentPlaceHolder ID="contentPlaceHolder" runat="server">         </asp:ContentPlaceHolder>     </div>     <div style="width: 100%; text-align: center; margin-top: 10px;" id="editFootBar"         runat="server">         <asp:Panel ID="bottomBar" runat="server">         </asp:Panel>     </div>     </form> </asp:Content>

 

 

<tr>
            <th>
                内容
            </th>
            <td>
                <iframe id="Iframe1" src="<%=ZPath.WebSite %>eWebeditor/ewebeditor.htm?id=UiNewsInfo_Contents&style=standard650&skin=blue1"
                    frameborder="0" scrolling="no" width="700px" height="300px"></iframe>
                <input id="UiNewsInfo_Contents" name="UiNewsInfo_Contents" type="text" des="内容" runat="server"
                    style="display: none;" clientidmode="Static" />
            </td>
        </tr>

 

 <form id="form1" runat="server" onsubmit="return OnEditSubmit();">

</form>

 function makeDecsion(rdo) {         

    var theDIV = $("#divCh");            

if (rdo.value == '2') {              

   theDIV.show();                

var txt = $("#txtNum");              

   txt.val("");            

}            

else {                

theDIV.hide();            

}            

var itemDIV = $("#divItem");          

   if (rdo.value == '1') {               

  itemDIV.show();                

var txtMin = $("#ItemMin");                

txtMin.val("");                

var txtMax = $("#ItemMax");               

  txtMax.val("");      

       }           

  else {               

  itemDIV.hide();          

   }

        }        

function confirmDelete() {           

  if (confirm("您将删除这些项,确定继续吗?"))              

   return true;         

    else               

  return false;      

   }       

  function validateTitle(condition) {         

    try {              

   var txtTitle = $("#txtTitle");               

  var txtNum = $("#txtNum");                

var txtScore = $("#txtScore");                

var txtOrder = $("#txtSortBy");                

var hidTitle = $("#hidTitleIds");              

   if (isEmpty(hidTitle.val()) && condition == "EDIT") {                

     alert("请先选择一个问题!");                   

  return false;

                }                

else if (isEmpty(txtTitle.val())) {                   

  alert("必须输入问题内容!");                   

  txtTitle.focus();                  

   return false;               

  }               

  else if (!isEmpty(txtNum.val()) && !isInt(txtNum.val())) {                  

   alert("字数必须为整数数字!");              

       txtNum.select();                   

  return false;                

}                

else if (!isEmpty(txtScore.val()) && !isInt(txtScore.val())) {                

     alert("满分分值必须为整数数字!");                

     txtScore.select();                   

  return false;               

  }               

  else if (!isEmpty(txtOrder.val()) && !isInt(txtOrder.val())) {                  

   alert("序号必须为整数数字!");                   

  txtOrder.select();                  

   return false;             

    }          

   }          

   catch (e) {               

  alert(e);             

    return false;        

     }        

}       

  function validateItem(condition) {           

  try {               

  var txtTitle = $("#txtOption");               

  var txtOrder = $("#txtItemSortBy");               

  var txtmultiple = $("#txtVoteMultiple");            

     var txtscore = $("#txtVoteScore");               

  var hidItem = $("#hidItemIds");          

       var hidTitle = $("#hidTitleIds");           

      if (isEmpty(hidItem.val()) && condition == "EDIT") {                   

  alert("请先选择一个选项!");                

     return false;

                }             

    else if (isEmpty(hidTitle.val())) {                   

  alert("请先选择一个问题!");                 

    return false;              

   }               

  else if (isEmpty(txtTitle.val())) {                 

    alert("必须输入选项内容!");                  

   txtTitle.focus();                  

   return false;           

      }           

      else if (!isEmpty(txtOrder.val()) && !isInt(txtOrder.val())) {               

      alert("序号必须为整数数字!");                 

    txtOrder.select();                  

   return false;              

   }               

  else if (!isEmpty(txtmultiple.val()) && !isInt(txtmultiple.val())) {              

       alert("投票倍数必须为整数数字!");              

       txtmultiple.select();                   

  return false;              

   }             

    else if (!isEmpty(txtscore.val()) && !isInt(txtscore.val())) {               

      alert("选项分数必须为整数数字!");              

       txtscore.select();                   

  return false;            

     }            

}            

catch (e) {             

    alert(e);            

     return false;      

       }      

   }    

</script>

 

 

posted on 2012-12-12 14:13  edsonwu  阅读(176)  评论(0编辑  收藏  举报