<%@ page language="C#" autoeventwireup="true" inherits="e_call_info, ZKCMS" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register TagName="meta" TagPrefix="UC" Src="~/e/meta.ascx" %>
<%@ Register TagName="head" TagPrefix="UC" Src="~/e/head.ascx" %>
<%@ Register TagName="foot" TagPrefix="UC" Src="~/e/foot.ascx" %>
<!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">
<head id="Head1" runat="server">
    <UC:meta ID="meta1" runat="server" />
</head>
<body>
    <form id="form1" runat="server" autocomplete="off">
    <asp:Label ID="pathcode" runat="server" Style="display: none">
   &nbsp;&raquo;&nbsp;在线压缩
    </asp:Label>
    <UC:head ID="head2" runat="server" />
    <%--main start--%>
    <div class="c1">
        <div class="b1">
            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="b1_l">
                    </td>
                    <td>
                        <div class="con1">
                            <ul>
                                <li class="on" style="width: 90px"><a href="call_info.aspx">新闻信息调用</a></li>
                                <li style="width: 90px"><a href="call_life.aspx">生活信息调用</a></li>
                                <li><a href="call_other.aspx">其它调用</a></li>
                            </ul>
                            <div class="clear"></div>
                        </div>
                    </td>
                    <td align="right">
                        <div class="con2"></div>
                    </td>
                    <td class="b1_r">
                    </td>
                </tr>
            </table>
        </div>
        <div class="v1">
            <div class="self_tip">
                <div>注意：使用Access数据库无法使用此功能，当前要调用的数据表的表名是info</div>
            </div>
            <style type="text/css">
                .self_tip
                {
                    padding: 10px 10px 0 10px;
                }
                .self_tip div
                {
                    color: #f60;
                    padding: 6px 6px 6px 10px;
                    border: solid 1px #fadc93;
                    background-color: #fdf1d6;
                    background-image: url(/s/skin/prompt_small.gif);
                    background-position: 10px 9px;
                    background-repeat: no-repeat;
                    padding-left: 32px;
                }
                .do1 #self_tr1 input, .do1 #self_tr2 input
                {
                    padding-left: 6px;
                    color: #999;
                }
            </style>
            <div class="do1">
                <table border="0" cellpadding="0" cellspacing="0" class="table1">
                    <tr>
                        <td class="tt">
                            显示条数：
                        </td>
                        <td>
                            <asp:TextBox ID="T_num" runat="server" MaxLength="3" CssClass="inp1" Width="100" Text="10"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            栏目类别限制：
                        </td>
                        <td>
                            <asp:TextBox ID="T_classid" runat="server" MaxLength="500" CssClass="inp1" Width="250"></asp:TextBox>
                            <span class="msgon">只显示哪个类别下的信息，多个类别编号请用英文逗号隔开，留空则不限制&nbsp;</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            投稿会员限制：
                        </td>
                        <td>
                            <asp:TextBox ID="T_uid" runat="server" MaxLength="500" CssClass="inp1" Width="250"></asp:TextBox>
                            <span class="msgon">只显示哪个投稿人的信息，多个会员编号请用英文逗号隔开，留空则不限制&nbsp;</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            关键词限制：
                        </td>
                        <td>
                            <asp:TextBox ID="T_keywords" runat="server" MaxLength="500" CssClass="inp1" Width="250"></asp:TextBox>
                            <span class="msgon">只显示页面关键字中含有指定词的信息，多个词用英文逗号隔开，留空则不限制&nbsp;</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            含代表图片的：
                        </td>
                        <td>
                            <asp:DropDownList ID="D_thumbnail" runat="server">
                                <asp:ListItem Text="不限制" Value=""></asp:ListItem>
                                <asp:ListItem Text="只显示含有代表图片的信息" Value=" and thumbnail<>''"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            含外部链接的：
                        </td>
                        <td>
                            <asp:DropDownList ID="D_url" runat="server">
                                <asp:ListItem Text="不限制" Value=""></asp:ListItem>
                                <asp:ListItem Text="只显示含有外部链接的信息" Value=" and thumbnail<>''"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            含FLV视频的：
                        </td>
                        <td>
                            <asp:DropDownList ID="D_flv" runat="server">
                                <asp:ListItem Text="不限制" Value=""></asp:ListItem>
                                <asp:ListItem Text="只显示含有FLV视频的信息" Value=" and flv<>''"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            时间格式：
                        </td>
                        <td>
                            <asp:DropDownList ID="D_timeformat" runat="server">
                                <asp:ListItem Text="年-月-日" Value="yyyy-MM-dd"></asp:ListItem>
                                <asp:ListItem Text="年-月-日 时:分" Value="yyyy-MM-dd HH:mm"></asp:ListItem>
                                <asp:ListItem Text="月-日" Value="MM-dd"></asp:ListItem>
                                <asp:ListItem Text="时:分" Value="HH-mm"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            短标题长度：
                        </td>
                        <td>
                            <asp:TextBox ID="T_titlelen" runat="server" MaxLength="3" CssClass="inp1" Width="100" Text="36"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            循环体：
                        </td>
                        <td>
                            <asp:TextBox ID="T_looptext" runat="server" TextMode="MultiLine" CssClass="inp1" Width="700" Height="150" Text="&lt;li&gt;&lt;a href=&quot;{classurl}&quot; target=&quot;_blank&quot;&gt;[{classname}]&lt;/a&gt;&lt;a href=&quot;{pageurl}&quot; title=&quot;{title}&quot; target=&quot;_blank&quot;&gt;{shorttitle}&lt;/a&gt;&lt;/li&gt;"></asp:TextBox>
                            <div style="padding-top: 8px;"><a href="javascript:void(0)" onclick="this.parentNode.style.display='none';document.getElementById('self_tr1').style.display='';document.getElementById('self_tr2').style.display='';" style="color: #f60;">显示可用字段或参数&raquo;</a></div>
                        </td>
                    </tr>
                    <tr id="self_tr1" style="display: none;">
                        <td class="tt">
                            <span style="color: red; font-weight: normal;">可用参数： </span>
                        </td>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="编号" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{id}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="信息发布时间" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{time}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="是否套红" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{isred}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="投稿会员编号" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{uid}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="点击率" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{click}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="所属栏目编号" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{classid}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="外部链接" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{url}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="代表图片" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{thumbnail}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="信息短标题" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{shorttitle}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="信息标题" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{title}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="信息内容" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{content}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="FLV视频地址" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{flv}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="信息来源" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{infofrom}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="页面标题" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{pagetitle}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="页面关键字" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{keywords}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="页面描述" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{description}" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr id="self_tr2" style="display: none;">
                        <td class="tt">
                            <span style="color: red; font-weight: normal;">扩展参数： </span>
                        </td>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="页面链接" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{pageurl}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="栏目链接" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{classurl}" />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <input type="text" class="inp1" value="栏目名称" />
                                    </td>
                                    <td>
                                        &nbsp;&nbsp;
                                    </td>
                                    <td>
                                        <input type="text" class="inp1" onclick="this.select()" value="{classname}" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            排序方式：
                        </td>
                        <td>
                            <asp:DropDownList ID="D_orderby" runat="server">
                                <asp:ListItem Text="按发布时间排序，最新发布的信息显示在前面" Value="order by time desc,id desc"></asp:ListItem>
                                <asp:ListItem Text="按排序值排序，排序值越大的信息显示在前面" Value="order by sorting desc,time desc,id desc"></asp:ListItem>
                                <asp:ListItem Text="按点击率排序，点击率越高的信息显示在前面" Value="order by click desc,time desc,id desc"></asp:ListItem>
                                <asp:ListItem Text="优先显示置顶套红的信息" Value="order by istop desc,isred desc,time desc,id desc"></asp:ListItem>
                                <asp:ListItem Text="按最新评论时间排序，最近评论的信息显示在前面" Value="order by pltime desc,time desc,id desc"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            &nbsp;
                        </td>
                        <td>
                            <asp:Button ID="Button1" runat="server" CssClass="but1_86" Text="生成调用语句" OnClick="Button1_Click" />
                            &nbsp;
                            <input type="button" class="but1" value="重置" onclick="window.location=location.href;" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            调用语句：
                        </td>
                        <td>
                            <asp:TextBox ID="T_result" runat="server" TextMode="MultiLine" CssClass="inp1" Width="700" Height="150"></asp:TextBox>
                            <asp:Literal ID="tip1" runat="server" Visible="false"><div class="str" style="color:Green;padding-top:5px;">请复制此调用语句，将此语句放入aspx文件中。</div></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td class="tt">
                            预览：
                        </td>
                        <td>
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <%--main end--%>
    <UC:foot ID="foot1" runat="server" />
    </form>
</body>
</html>
