55 lines
2.1 KiB
PHTML
Raw Normal View History

2011-07-01 12:44:12 +00:00
<?php if ($this->op == 'delete') {?>
<div id="result">
Êtes-vous sur de vouloir supprimer l'annonce <?=$this->idan?>, source <?=$this->source?> ?
</div>
2011-09-01 14:07:23 +00:00
<form id="saisie" name="saisie" action="<?=$this->url(array('controller'=>'saisie', 'action'=>'annonce'), null, true)?>" method="post">
2011-07-01 12:44:12 +00:00
<input type="hidden" name="op" value="<?=$this->op?>" />
<input type="hidden" name="idan" value="<?=$this->idan?>" />
<input type="hidden" name="siret" value="<?=$this->siret?>" />
<input type="hidden" name="source" value="<?=$this->source?>" />
</form>
<?php } elseif ($this->op == 'copy'){ ?>
<div id="result">
Affecte l'annonce <?=$idan?> de <?=$siret?> sur un nouveau siren.
</div>
<br/>
2011-09-01 14:07:23 +00:00
<form id="saisie" name="saisie" action="<?=$this->url(array('controller'=>'saisie', 'action'=>'annonce'), null, true)?>" method="post">
2011-07-01 12:44:12 +00:00
<input type="hidden" name="op" value="<?=$this->op?>" />
<input type="hidden" name="idan" value="<?=$this->idan?>" />
<input type="hidden" name="source" value="<?=$this->source?>" />
<input type="hidden" name="siretIn" value="<?=$this->siret?>" />
Siren / Siret : <input type="text" name="siretOut" value="" />
</form>
<?php } elseif ($this->op == 'edit') {?>
2011-09-01 14:07:23 +00:00
<?php if (empty($this->message)){ ?>
<link rel="stylesheet" type="text/css" media="all" href="/themes/default/styles/saisie.css"/>
<script type="text/javascript" src="/themes/default/scripts/saisie.js"></script>
2011-09-01 14:07:23 +00:00
<form id="saisie" name="saisie" action="<?=$this->url(array('controller'=>'saisie', 'action'=>'annonce'), null, true)?>" method="post">
<input type="hidden" name="op" value="<?=$this->op?>" />
<input type="hidden" name="siret" value="<?=$this->siret?>"/>
<input type="hidden" name="idan" value="<?=$this->idan?>">
<?=$this->action('form', 'saisie', null, array('siret'=>$this->siret))?>
</form>
<?php } else { echo $this->message; }?>
2011-09-01 14:07:23 +00:00
2011-07-01 12:44:12 +00:00
<?php }?>
2011-09-01 14:07:23 +00:00
2011-07-01 12:44:12 +00:00
<script type="text/javascript" src="/themes/default/scripts/jquery.form.js"></script>
<script>
$('form#saisie').bind('submit', function(){
var options = {
target: '#result',
beforeSubmit: function(formData){},
success: function(data){ $('#result').html(data); }
};
$(this).ajaxSubmit(options);
return false;
});
</script>