File size: 1.82Kb
<?php
/**
* SocialEngine
*
* @category Application_Core
* @package Core
* @copyright Copyright 2006-2020 Webligo Developments
* @license http://www.socialengine.com/license/
* @version $Id: edit.tpl 9747 2012-07-26 02:08:08Z john $
* @author Jung
*/
?>
<script type="text/javascript">
var myCalStart = false;
var myCalEnd = false;
en4.core.runonce.add(function(){
scriptJquery(`<button type="button" class="event_calendar"></button>`).insertBefore(scriptJquery('#start_time-date').attr("type","text").attr("autocomplete","off").datepicker({
})
);
scriptJquery(`<button type="button" class="event_calendar"></button>`).insertBefore(scriptJquery('#end_time-date').attr("type","text").attr("autocomplete","off").datepicker({
})
);
});
var updateTextFields = function(endsettings)
{
var endtime_element = document.getElementById("end_time-wrapper");
endtime_element.style.display = "none";
if (endsettings.value == 0)
{
endtime_element.style.display = "none";
return;
}
if (endsettings.value == 1)
{
endtime_element.style.display = "block";
return;
}
}
<?php if($this->campaign->end_settings == 0):?>
en4.core.runonce.add(updateTextFields);
<?php endif;?>
</script>
<h2 class="page_heading"><?php echo $this->translate("Editing Ad Campaign: ") ?><?php echo $this->campaign->name;?></h2>
<?php if( engine_count($this->navigation) ): ?>
<div class='tabs'>
<?php
// Render the menu
//->setUlClass()
echo $this->navigation()->menu()->setContainer($this->navigation)->render()
?>
</div>
<?php endif; ?>
<div class='settings'>
<?php echo $this->form->render($this); ?>
</div>
<script type="application/javascript">
scriptJquery('.core_admin_main_monetization').parent().addClass('active');
scriptJquery('.core_admin_main_ads').addClass('active');
</script>