<?php
/* Smarty version 4.3.2, created on 2024-07-23 15:46:28
  from '/var/www/html/public/legacy/modules/Campaigns/tpls/WizardCampaignHeader.tpl' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.3.2',
  'unifunc' => 'content_669fd054969f84_20599298',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '331da315fda210f656d82e7a038eaae0d241a739' => 
    array (
      0 => '/var/www/html/public/legacy/modules/Campaigns/tpls/WizardCampaignHeader.tpl',
      1 => 1709743138,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_669fd054969f84_20599298 (Smarty_Internal_Template $_smarty_tpl) {
?>
	<!-- Begin Campaign Diagnostic Link -->	
	<!-- <?php echo $_smarty_tpl->tpl_vars['CAMPAIGN_DIAGNOSTIC_LINK']->value;?>
 -->
	<!-- End Campaign Diagnostic Link -->
	<div class="template-panel">
		<div class="template-panel-container panel">
			<div class="template-container-full">
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<th  colspan="4"><h4 class="header-4"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_WIZ_NEWSLETTER_TITLE_STEP1'];?>
 </h4></th>
					</tr>
		<tr>
			<td  colspan="3"><label class="wizard-step-info"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_STEP_INFO_CAMPAIGN_HEADER'];?>
 </label></td>
			<td colspan="1" class="emptyField">&nbsp;</td>
		</tr>
		<tr>
			<td width="17%" scope="col"><span sugar='slot1'><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_NAME'];?>
 <span class="required"><?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_REQUIRED_SYMBOL'];?>
</span></span sugar='slot'></td>
			<td width="33%" ><span sugar='slot1b'><input id='name' name='wiz_step1_name' aria-required="true"  title='<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_NAME'];?>
' <?php echo $_smarty_tpl->tpl_vars['DISABLED']->value;?>
  size='50' maxlength='50' type="text" value="<?php echo $_smarty_tpl->tpl_vars['CAMP_NAME']->value;?>
" ></span sugar='slot'></td>
			<td width="15%" scope="col"><span sugar='slot2'><?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_ASSIGNED_TO'];?>
</span sugar='slot'></td>
			<td width="35%" ><span sugar='slot2b'><input class="sqsEnabled" autocomplete="off" id="assigned_user_name" name="wiz_step1_assigned_user_name"  title='<?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_ASSIGNED_TO'];?>
' type="text" value="<?php echo $_smarty_tpl->tpl_vars['ASSIGNED_USER_NAME']->value;?>
"><input id='assigned_user_id' name='wiz_step1_assigned_user_id' type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['ASSIGNED_USER_ID']->value;?>
" />
		<input title="<?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_SELECT_BUTTON_TITLE'];?>
" type="button" class="button" value='<?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_SELECT_BUTTON_LABEL'];?>
' name=btn1
			   onclick='open_popup("Users", 600, 400, "", true, false, <?php echo $_smarty_tpl->tpl_vars['encoded_users_popup_request_data']->value;?>
);' /></span sugar='slot'>
			</td>
		</tr>
		<tr>
			<td width="15%" scope="col"><span sugar='slot3'><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_STATUS'];?>
 <span class="required"><?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_REQUIRED_SYMBOL'];?>
</span></span sugar='slot'></td>
			<td width="35%" ><span sugar='slot3b'><select id='status' name='wiz_step1_status'  aria-required="true" title='<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_STATUS'];?>
'><?php echo $_smarty_tpl->tpl_vars['STATUS_OPTIONS']->value;?>
</select></span sugar='slot'></td>
		</tr>

					<?php if ($_smarty_tpl->tpl_vars['campaign_type']->value == 'survey') {?>
						<tr>
							<td width="15%" scope="col"><span sugar='slot3'><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_SURVEY'];?>
 <span class="required"><?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_REQUIRED_SYMBOL'];?>
</span></span sugar='slot'></td>
							<td width="35%" >
								<span sugar='slot2b'>
									<input class="sqsEnabled" autocomplete="off" id="survey_name" name="wiz_step1_survey_name"  title='<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_SURVEY'];?>
' type="text" value="<?php echo $_smarty_tpl->tpl_vars['SURVEY_NAME']->value;?>
">
									<input id='survey_id' name='wiz_step1_survey_id' type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['SURVEY_ID']->value;?>
"  title='<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_SURVEY'];?>
'/>
									<input title="<?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_SELECT_BUTTON_TITLE'];?>
" type="button" class="button" value='<?php echo $_smarty_tpl->tpl_vars['APP']->value['LBL_SELECT_BUTTON_LABEL'];?>
' name=btn1 onclick='open_popup("Surveys", 600, 400, "", true, false, <?php echo $_smarty_tpl->tpl_vars['encoded_surveys_popup_request_data']->value;?>
);' />
								</span sugar='slot'>
							</td>
					</tr>
					<?php }?>

					<tr<?php if ($_smarty_tpl->tpl_vars['HIDE_CAMPAIGN_TYPE']->value) {?> style="display: none;"<?php }?>>
						<td scope="col"><span sugar='slot6'><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_TYPE'];?>
 </td>
						<td><span sugar='slot6b'><<?php echo $_smarty_tpl->tpl_vars['SHOULD_TYPE_BE_DISABLED']->value;?>
 id='campaign_type' title='<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_TYPE'];?>
' name='wiz_step1_campaign_type' ><?php echo $_smarty_tpl->tpl_vars['CAMPAIGN_TYPE_OPTIONS']->value;?>
</select></span sugar='slot'></td>
					</tr>
					<tr class="emptyRow">
						<td width="15%"><span sugar='slot9'>&nbsp;</span></span sugar='slot'></td>
						<td width="35%" ><span sugeeear='slot9b'>&nbsp;</span sugar='slot'></td>
						<td ><span sugar='slot10'>&nbsp;</span sugar='slot'></td>
						<td><span sugar='slot10b'>&nbsp;</span sugar='slot'></td>
					</tr>
					<tr>
						<td valign="top" scope="row"><span sugar='slot10'><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_CONTENT'];?>
</span sugar='slot'></td>
						<td colspan="3"><span sugar='slot10a'><textarea id='wiz_content' name='wiz_step1_content' title='<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_CONTENT'];?>
'  cols="110" rows="5"><?php echo $_smarty_tpl->tpl_vars['CONTENT']->value;?>
</textarea></span sugar='slot'></td>
					</tr>
					<tr>
						<td scope="row">&nbsp;</td>
						<td>&nbsp;</td>
						<td scope="row">&nbsp;</td>
						<td>&nbsp;</td>
					</tr>
					</table>
			</div>
		</div>


		<?php if ($_smarty_tpl->tpl_vars['campaign_type']->value != "general") {?>
		<div class="template-panel-container panel">
				<div class="template-container-full">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<th colspan="4" align="left" ><h4 class="header-4"><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_WIZ_NEWSLETTER_TITLE_STEP2'];?>
</h4></th>
							</tr>
							<tr class="emptyRow"><td class="wizard-step-info" colspan="3"><label><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_WIZARD_BUDGET_MESSAGE'];?>
</label></td><td>&nbsp;</td></tr>
							<tr class="emptyRow"><td class="datalabel" colspan="4">&nbsp;</td></tr>
							<tr>
								<td scope="col"><span sugar='slot14'><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_BUDGET'];?>
</span sugar='slot'></td>
								<td ><span sugar='slot14b'><input type="text" size="10" maxlength="15" id="budget" name="wiz_step2_budget" title="<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_BUDGET'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['CAMP_BUDGET']->value;?>
"></span sugar='slot'></td>
								<td scope="col"><span sugar='slot15'><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_ACTUAL_COST'];?>
</span sugar='slot'></td>
								<td ><span sugar='slot15b'><input type="text" size="10" maxlength="15" id="actual_cost" name="wiz_step2_actual_cost" title="<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_ACTUAL_COST'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['CAMP_ACTUAL_COST']->value;?>
"></span sugar='slot'></td>
							</tr>
							<tr>
								<td scope="col"><span sugar='slot16'><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_EXPECTED_REVENUE'];?>
</span sugar='slot'></td>
								<td ><span sugar='slot16b'><input type="text" size="10" maxlength="15" id="expected_revenue" name="wiz_step2_expected_revenue" title="<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_EXPECTED_REVENUE'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['CAMP_EXPECTED_REVENUE']->value;?>
"></span sugar='slot'></td>
								<td scope="col"><span sugar='slot17'><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_EXPECTED_COST'];?>
</span sugar='slot'></td>
								<td ><span sugar='slot17b'><input type="text" size="10" maxlength="15" id="expected_cost" name="wiz_step2_expected_cost" title="<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_EXPECTED_COST'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['CAMP_EXPECTED_COST']->value;?>
"></span sugar='slot'></td>
							</tr>
							<tr>
								<td scope="col"><span sugar='slot18'><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CURRENCY'];?>
</span sugar='slot'></td>
								<td><span sugar='slot18b'><select title='<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CURRENCY'];?>
' name='wiz_step2_currency_id' id='currency_id'   onchange='ConvertItems(this.options[selectedIndex].value);'><?php echo $_smarty_tpl->tpl_vars['CURRENCY']->value;?>
</select></span sugar='slot'></td>
								<td scope="col"><span sugar='slot17'><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_IMPRESSIONS'];?>
</span sugar='slot'></td>
								<td ><span sugar='slot17b'><input type="text" size="10" maxlength="15" id="impressions" name="wiz_step2_impressions" title="<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_IMPRESSIONS'];?>
" value="<?php echo $_smarty_tpl->tpl_vars['CAMP_IMPRESSIONS']->value;?>
"></span sugar='slot'></td></tr>
							<tr class="emptyRow">
								<td scope="col"><span sugar='slot18'>&nbsp;</span sugar='slot'></td>
								<td><span sugar='slot18b'>&nbsp;</td>
								<td scope="col"><span sugar='slot19'>&nbsp;</span sugar='slot'></td>
								<td><span sugar='slot19b'>&nbsp;</span sugar='slot'></td>
							</tr>
							<tr>
								<td valign="top" scope="row"><span sugar='slot20'><?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_OBJECTIVE'];?>
</span sugar='slot'></td>
								<td colspan="4"><span sugar='slot20b'><textarea id="objective" name="wiz_step2_objective" title='<?php echo $_smarty_tpl->tpl_vars['MOD']->value['LBL_CAMPAIGN_OBJECTIVE'];?>
' cols="110" rows="5"><?php echo $_smarty_tpl->tpl_vars['OBJECTIVE']->value;?>
</textarea></span sugar='slot'></td>
							</tr>
							<tr>
								<td >&nbsp;</td>
								<td>&nbsp;</td>
								<td >&nbsp;</td>
								<td>&nbsp;</td>
							</tr>
						</table>
					</div>
		</div>
		<?php }?>

	</div>


	
	<?php echo '<script'; ?>
 type="text/javascript">
		Calendar.setup ({
			inputField : "start_date", ifFormat : "<?php echo $_smarty_tpl->tpl_vars['CALENDAR_DATEFORMAT']->value;?>
", showsTime : false, button : "start_date_trigger", singleClick : true, step : 1, weekNumbers:false
			
		});
		
		Calendar.setup ({
			inputField : "end_date", ifFormat : "<?php echo $_smarty_tpl->tpl_vars['CALENDAR_DATEFORMAT']->value;?>
", showsTime : false, button : "end_date_trigger", singleClick : true, step : 2, weekNumbers:false
		
		});
	

    /*
     * this is the custom validation script that will validate the fields on step1 of wizard
     */
    
    function validate_step1(){
        //loop through and check for empty strings ('  ')
        requiredTxt = SUGAR.language.get('app_strings', 'ERR_MISSING_REQUIRED_FIELDS');
        var stepname = 'wiz_step_1_';
        var has_error = 0;
        var fields = new Array();
        fields[0] = 'name'; 
        fields[1] = 'status';
        fields[2] = 'end_date';
        
        <?php if ($_smarty_tpl->tpl_vars['campaign_type']->value == "survey") {?>
        fields[3] = 'survey_id';
        <?php }?>
        
        var field_value = ''; 
        for (i=0; i < fields.length; i++){
            if(document.getElementById(fields[i]) !=null){
                field_value = trim(document.getElementById(fields[i]).value);
                if(field_value.length<1){
                //throw error if string is empty            
                add_error_style('wizform', fields[i], requiredTxt +' ' +document.getElementById(fields[i]).title );
                has_error = 1;
                }
            }
        }
        if(has_error == 1){
            //error has been thrown, return false
            return false;
        }
        //add fields to validation and call generic validation script 
        if(validate['wizform']!='undefined'){delete validate['wizform']};
        addToValidate('wizform', 'name', 'alphanumeric', true,  document.getElementById('name').title);
        addToValidate('wizform', 'status', 'alphanumeric', true,  document.getElementById('status').title);

        return check_form('wizform');
    }    





	<?php echo '</script'; ?>
>
	
	<link rel="stylesheet" type="text/css" href="modules/EmailTemplates/EmailTemplate.css">

<?php }
}
