<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="List_Tour.aspx.cs" Inherits="MYAPP.Manage.Project.Design.List_Tour" %>
<%@ Import Namespace="COE.Components" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<head id="Head1" runat="server">
<title>Tour Project</title>
<link href="/CSS/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/js/coe.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<Script Language="JavaScript" type="text/JavaScript" src="/js/showo_page.js"></Script>
<script language="JavaScript" type="text/javascript">
function MoveTour(Tour_ID)
{
	if (Tour_ID!="")
	{
		if (AjaxDemo.MoveTour(Tour_ID,$('Area_ID').value).value)
		{
			window.location=window.location;
		}
		else
		{
			alert("错误!!!");
			window.location=window.location;
		}
	}
	else
	{
		alert("请选择漫游项目!!!");
	}
    
	function Get_IVers()
	{
		alert('abc');		
	}
}
</script>
</head>
<body>
<form id="theform" runat="server">
  <table width="100%" cellspacing="2" border="1" align="center" cellpadding="0" bordercolor="#CCCCCC"
            class="board_kong">
    <tr>
      <td><table cellspacing="1" cellpadding="0" width="100%" border="0">
          <tr>
            <td style="border-bottom: #CCCCCC 1px solid; height: 24px"><table class="title_table">
                <tr>
                  <td class="l_title">[<%=MyApp.Components.Area.GetElemValueByPath(_Area_ID,"name")%><%if (_Area_ID=="")Response.Write("默认项目"); %><%if (_Area_ID=="-1")Response.Write("全部项目"); %>]</td>
                  <td width="100" align="center" class="l_title"><input type="button" class="width80px" style="cursor:pointer" onclick='top.openWindow("Project/Design/Tour/ADD_Tour.aspx?action=add&Tour_ID=0&Area_ID=<%=_Area_ID%>", "560", "188", "漫游项目" , "no");' value="添加"/></td>
                </tr>
              </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="1"  align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB" class="board_kong">
                <tr>
                  <td height="22"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
                      <tr class="table_title">
                        <td width="40" align="center" bgcolor="#D7F2FF" class="tab_bottom_line"><input type="checkbox" onclick="setCheckboxes('theform','checkbox',this.checked)" /></td>
                        <td width="80" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">ID</td>
                        <td height="20" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">漫游名称</td>
                        <td width="76" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">日期</td>
                        <td width="40" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">版本</td>
                        <td width="40" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">设计</td>
                        <td width="40" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">生成</td>
                        <td colspan="2" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">(html5)预览</td>
                        <td width="20" height="20" align="center" bgcolor="#D7F2FF" class="tab_bottom_line">操作</td>
                      </tr>
                      <asp:Repeater ID="rp_list" runat="server" DataSource="<%#list_dt%>">
                        <ItemTemplate>
                          <tr onMouseOver="this.className='tr_onmouseover'" onMouseOut="this.className='tr_onmouseout'" >
                            <td align="center" nowrap="nowrap" class="tab_bottom_line"><input type="checkbox" name="checkbox" value="<%# Eval("Name").ToString().Trim()%>" /></td>
                            <td height="18" align="center" nowrap="nowrap" class="tab_bottom_line"><%# Eval("Name").ToString().Trim()%></td>
                            <td align="center" nowrap="nowrap" class="tab_bottom_line"><%#GetElemValueByPath(Eval("Name"),"Name")%></td>
                            <td width="76" align="center" nowrap="nowrap" class="tab_bottom_line"><%#GetElemValueByPath(Eval("Name"),"Date")%></td>
                            <td width="40" align="center" nowrap="nowrap" class="tab_bottom_line" ><input type="button" class="cursor_pointer"  style="width:35px" <%#GetElemValueByPath(Eval("Name"))%>     title="操作后点击’生成‘"    onclick="window.location='Version_Upgrade.aspx?action=Upgrade&Tour_ID=<%#Eval("Name")%>&Version_ID=<%#GetElemValueByPath(Eval("Name"),"Version")%>&';"/></td>
                            <td width="40" align="center" nowrap="nowrap" class="tab_bottom_line"><input type="button" class="cursor_pointer" value="设计" onclick="window.open('../Design/index.aspx?action=edit&Tour_ID=<%#Eval("Name")%>','<%#Encrypt.EncryptString(GetElemValueByPath(Eval("Name"),"Name"))%>','toolbar=no,resizable=yes,status=yes');"/></td>
                            <td width="40" align="center" nowrap="nowrap" class="tab_bottom_line"><input type="button" class="cursor_pointer" value="生成" onclick="window.location='Export_TourXml.aspx?action=Publish&Tour_ID=<%#Eval("Name")%>';"/></td>
                            <td width="35" align="center" nowrap="nowrap" class="tab_bottom_line"><a href="Export_TourXml.aspx?Tour_ID=<%# Eval("Name").ToString().Trim()%>" target="_blank" title="auto"><font color="#FF0000">预览</font></a></td>
                            <td width="35" align="center" nowrap="nowrap" class="tab_bottom_line"><a href="Export_TourXml.aspx?Tour_ID=<%# Eval("Name").ToString().Trim()%>&Html5=only" target="_blank" title="only html5"><font color="#800000">only</font></a><a href="Export_TourXml.aspx?Tour_ID=<%# Eval("Name").ToString().Trim()%>&html5=always" target="_blank"></a></td>
                            <td width="20" align="center" nowrap="nowrap" class="tab_bottom_line"><a href="Tour/AD_Tour.aspx?action=del&Tour_ID=<%#Eval("Name")%>" style="color:#FF0000" onClick="delete_confirm()"><img src="/images/operate/del.gif" width="16" height="16" border="0" title="删除" /></a></td>
                          </tr>
                        </ItemTemplate>
                      </asp:Repeater>
                  </table></td>
                </tr>
                <tr>
                  <td height="24" align="center"><table border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td><script Language=JavaScript>
ShowoPage("<table style='BORDER-COLLAPSE: collapse' borderColor='#111111' height='10' cellSpacing='0' cellPadding='0' width='100%' border='0'><tr><td vAlign='bottom' width='40%' style='font-family: Arial, Helvetica, sans-serif; font-size: 11.5px; line-height: 15px'>","</td></tr></table>","页数:<font color='#006666'>","</font>/","<font color='#FF00FF'>","</font>&nbsp;","&nbsp;<font color='#000080'>","</font> 每页&nbsp;","&nbsp;<font color='orange'>记录</font>:<font color='green'>","</font></td><td vAlign='bottom' align='right' style='font-family: Arial, Helvetica, sans-serif; font-size: 11.5px; line-height: 15px'>","首页","前页","后页","末页","&nbsp;&nbsp;Jump:","<font color='red'>","</font>","","","<font color='red'>","</font>","&nbsp;[","]&nbsp;",<%=RecordCount%>,<%=PageRecord%>,8)
</script></td>
                      </tr>
                    </table></td>
                </tr>
                <tr>
                  <td height="24" align="center">
                      <table width="100%" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#EBEBEB" class="board_kong">
                      <tr>
                        <td align="center" nowrap="nowrap" class="left_title_request">移动区域:</td>
                        <td align="left"><asp:DropDownList ID="Area_ID" runat="server">
                            <asp:ListItem Value="">默认区域</asp:ListItem>
                          </asp:DropDownList>
                          <input type="button" class="width80px" onclick="MoveTour(getCheckboxesValue('theform','checkbox'));" value="移动漫游"/></td>
                      </tr>
                    </table></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
</body>
</html>
