{template "header.html"}
<div class="note note-danger">
    <p>在公众平台网站上，为订阅号提供了每天一条的群发权限，为服务号提供每月（自然月）4条的群发权限。</p>
</div>

<form action="" class="form-horizontal" method="post" name="myform" id="myform">
    {$form}
    <div class="portlet bordered light ">
        <div class="portlet-title">

            <div class="caption">
                <span class="caption-subject font-green ">接收粉丝</span>
            </div>
        </div>
        <div class="portlet-body">
            <div class=" mt-radio-inline">
                <label class="mt-radio mt-radio-outline"> 全部粉丝【{$ucount}】
                    <input type="radio" value="0" checked name="data[groupid]">
                    <span></span>
                </label>
                {loop $group $v}
                <label class="mt-radio mt-radio-outline"> {$v.name}【{$v.count}】
                    <input type="radio" value="{$v.tag}" name="data[groupid]">
                    <span></span>
                </label>
                {/loop}
            </div>
        </div>
    </div>
    <div class="portlet bordered light myfbody">
        <div class="portlet-title">

            <div class="caption">
                <span class="caption-subject font-green ">内容选择</span>
            </div>
        </div>
        <div class="portlet-body">

            <div class="row table-search-tool">
                <div class="col-xs-12">
                    <label><input type="text" class="form-control" value="{$param['keyword']}" name="search[keyword]" /></label>
                    <label><button type="submit" class="btn blue btn-sm onloading" name="submit" > <i class="fa fa-search"></i> {dr_lang('搜索')}</button></label>
                </div>
            </div>


            <div class="table-scrollable">
                <table class="table table-striped table-bordered table-hover table-checkable dataTable">
                    <thead>
                    <tr class="heading">
                        <th class="myselect"></th>
                        <th>{dr_lang('主题')}</th>
                        <th width="80" style="text-align:center" >{dr_lang('状态')}</th>
                        <th width="150" >{dr_lang('发布时间')}</th>
                    </tr>
                    </thead>
                    <tbody>
                    {loop $list $t}
                    <tr class="odd gradeX" id="dr_row_{$t.id}">
                        <td class="myselect" style="padding-left:10px !important">
                            <label class="mt-radio mt-radio-outline">
                                <input type="radio" name="data[content]" value="{$t.id}">
                                <span></span>
                            </label>
                        </td>
                        <td>{$t.title}</td>
                        <td style="text-align:center">
                            {if !$t.media_id}
                            <span class="label label-sm label-danger"> {dr_lang('未同步')} </span>
                            {else}
                            <span class="label label-sm label-success"> {dr_lang('已同步')} </span>
                            {/if}</td>
                        <td>{dr_date($t.inputtime, '', 'red')}</td>
                    </tr>
                    {/loop}
                    </tbody>
                </table>
            </div>


        </div>
    </div>
    <div class="portlet-body form myfooter">
        <div class="form-actions text-center">
            <button type="button" onclick="dr_ajax_submit('{dr_now_url()}&ac=send', 'myform', '2000')" class="btn green"> <i class="fa fa-send"></i> {dr_lang('发送')}</button>
        </div>
    </div>
</form>



{template "footer.html"}