<form action="<?php echo esc_url($pageurl);?>&noheader=1" method="post" id="smpush_jform" class="validate">
<input type="hidden" name="id" value="<?php echo esc_attr($channel['id']);?>">
   <div id="post-body" class="metabox-holder columns-2">
      <div id="post-body-content" class="edit-form-section">
         <div id="namediv" class="stuffbox">
            <h3><label><?php echo (empty(esc_attr($channel['title'])))? esc_html__('Add New Channel', 'smio-push-notification') : esc_attr($channel['title']);?></label></h3>
            <div class="inside">
               <table class="form-table">
                <tbody>
                  <tr valign="top" class="form-required">
                     <td class="first"><?php echo esc_html__('Title', 'smio-push-notification')?></td>
                     <td>
                     <input name="title" type="text" size="40" value="<?php echo esc_attr($channel['title']);?>" aria-required="true">
                     </td>
                  </tr>
                  <tr valign="top">
                     <td class="first"><?php echo esc_html__('Description', 'smio-push-notification')?></td>
                     <td>
                     <textarea name="description" rows="5" cols="40"><?php echo esc_attr($channel['description']);?></textarea>
                     </td>
                  </tr>
                  <tr valign="top">
                     <td class="first"><?php echo esc_html__('Privacy', 'smio-push-notification')?></td>
                     <td>
                     <select name="privacy">
                        <option value="0"><?php echo esc_html__('Public', 'smio-push-notification')?></option>
                        <option value="1" <?php if($channel['private'] == 1){?>selected="selected"<?php }?>><?php echo esc_html__('Private', 'smio-push-notification')?></option>
                     </select>
                     </td>
                  </tr>
                  <tr valign="top">
                    <td colspan="2"><input type="submit" name="submit" id="smio-submit" class="button button-primary" style="width: 120px;" value="<?php echo esc_html__('Save Changes', 'smio-push-notification')?>">
                    <img src="<?php echo smpush_imgpath;?>/wpspin_light.gif" class="smpush_process" alt="" /></td>
                 </tr>
                </tbody>
              </table>
            </div>
         </div>
      </div>
   </div>
</form>
