<?php
/* @var $this NewsletterController */
/* @var $model Newsletter */
/* @var $form CActiveForm */
?>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'newsletter-form',
	'enableAjaxValidation'=>false,
)); ?>

<div id="form_wrapper">
  <fieldset id="current">
    <legend><strong>Create a News Letter</strong> <br>
    </legend>
    <table width="800" cellspacing="0" cellpadding="4">
      <tbody>
        <tr>
          <td width="146"><?php echo $form->labelEx($model,'title'); ?></td>
          <td width="632"><?php echo $form->textField($model,'title',array('size'=>20,'maxlength'=>255)); ?> <?php echo $form->error($model,'title'); ?></td>
        </tr>
        <tr>
          <td valign="top"><?php echo $form->labelEx($model,'news_letter_body'); ?></td>
          <td><?php echo $form->textArea($model,'news_letter_body',array('rows'=>10, 'cols'=>80, 'class'=>'ckeditor')); ?> <?php echo $form->error($model,'news_letter_body'); ?></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><?php echo CHtml::submitButton('Sent to all Members'); ?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		  <?php echo CHtml::submitButton('Send to all Staff'); ?> <br>
            <br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="reset" value="Clear" id="button2" name="button2"></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </tbody>
    </table>
  </fieldset>
  <div id="row">
    <fieldset id="current">
      <legend><strong>Auto Model News Letter</strong> <br />
      </legend>
      <table width="800" cellspacing="0" cellpadding="4">
        <tr>
          <td width="749" align="center"><?php echo $form->textArea($model1,'content',array('rows'=>10, 'cols'=>80, 'class'=>'ckeditor')); ?> <?php echo $form->error($model1,'content'); ?></td>
        </tr>
        <tr>
          <td align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <?php echo CHtml::submitButton('Create'); ?>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <?php echo CHtml::submitButton('Stop'); ?>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <?php echo CHtml::Link('Preview',Yii::app()->createUrl('newsletter/newsletterTemp'),array('target'=>'_blank')); ?>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
      </table>
    </fieldset>
  </div> 
</div>
<?php $this->endWidget(); ?>