<?php if (!defined('ROOT')){ echo 'Deny ...'; exit; } extract($data); ?>
<ons-page ng-controller="PostMoreController">
    <div class="navigation-bar navigation-bar--android">
        <div class="navigation-bar__left navigation-bar--android__left"></div> 
        <div class="navigation-bar__center navigation-bar--android__center
            navigation-bar__title navigation-bar--android__title">发布微信群</div> 
        <div class="navigation-bar__right navigation-bar--android__right" onclick="postNavigator.popPage();">
            <span class="toolbar-button--quiet navigation-bar__line-height">返回</span>
        </div> 
    </div>
    <form method="post" action="" onsubmit="return false;" id="postMoreForm">
    <div style="text-align: center; padding: 20px 0 10px 0;">
        <input type="text" class="text-input text-input--underbar" name="nickname" id="qunNickname" placeholder="群昵称(10个字以内)" maxlength="10" value="" style="width: 85%;">
    </div>
    <div style="text-align: center; padding: 10px 0 10px 0;">
        <input type="text" class="text-input text-input--underbar" name="province" id="qunProvince" placeholder="省份" value="<?php echo $user->province;?>" style="width: 42%;">
        <input type="text" class="text-input text-input--underbar" name="city" id="qunCity" placeholder="城市" value="<?php echo $user->city;?>" style="width: 42%;">
    </div>
    <div style="text-align: center; padding: 20px 0 10px 0;">
        <textarea class="textarea" rows="3" placeholder="请简单描述群(60个字以内)" id="qunIntro" name="intro" style="width: 85%;"></textarea>
    </div>
    <div style="text-align: center; padding: 10px 0 10px 0;">
        <div style="width: 85%; margin: 0 auto;">
            <table width="100%">
                <tr>
                    <td width="80" style="text-align: left;" valign="top">群头像<br/><a href="javascript:;" ng-click="selectQunAvatar();" style="font-size: 12px;">[上传]</a></td>
                    <td style="text-align: left;">
                        <input type="hidden" name="qunavatar" id="qunAvatarInput" value="<?php echo $user->headimgurl;?>" />
                        <img id="qunAvatar" src="<?php echo $user->headimgurl;?>" style="width: 90px; height: 90px;" align="absmiddle" ng-click="selectQunAvatar();">                        
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div style="text-align: center; padding: 10px 0 10px 0;">
        <div style="width: 85%; margin: 0 auto;">
            <table width="100%">
                <tr>
                    <td width="80" style="text-align: left;" valign="top">群二维码<br/><a href="javascript:;" style="font-size: 12px;" ng-click="selectQunQrcode();">[上传]</a></td>
                    <td style="text-align: left;">
                        <input type="hidden" name="qunqrcode" id="qunQrcodeInput" value="" />
                        <img id="qunQrcode" src="" style="width: 90px; height: 90px;" align="absmiddle" ng-click="selectQunQrcode();"/>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div style="text-align: center; padding: 10px 0 10px 0;">
        <div style="width: 85%; margin: 0 auto;">
            <table width="100%">
                <tr>
                    <td width="80" style="text-align: left;">群兴趣</td>
                    <td style="text-align: left;">
                        <select style="padding: 5px;border: 1px solid #ccc;height: 34px;" name="industry" id="industryQun">
                            <option value="">-- 请选择兴趣 --</option>
                            <option value="红包接龙">红包接龙</option>
                            <option value="推广互粉">推广互粉</option>
                            <option value="娱乐天地">娱乐天地</option>
                            <option value="同城交友">同城交友</option>
                            <option value="行业交流">行业交流</option>
                            <option value="男神女神">男神女神</option>
                            <option value="生活服务">生活服务</option>
                        </select>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <div style="text-align: center; padding: 20px 0 10px 0;">
        <button class="button button--large" style="width: 85%; margin: 0 auto;" ng-click="post();">确 认</button>
    </div>
    </form>
</ons-page>