Logo image avec le module file

This commit is contained in:
Michael RICOIS 2016-02-07 21:11:53 +00:00
parent 137bfe690e
commit f2eb3b0acd
6 changed files with 8 additions and 7 deletions

View File

@ -21,6 +21,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
$front->setControllerDirectory(array(
'default' => __DIR__ . '/modules/default/controllers',
'admin' => __DIR__ . '/modules/admin/controllers',
'file' => __DIR__ . '/modules/file/controllers',
));
return $front;

View File

@ -1,7 +1,7 @@
<?php if ($this->isPost) :?>
<div style="text-align:center;">
<img src="/fichier/logo/<?=$this->image?>"/>
<img src="/file/image/logo/q/<?=$this->image?>"/>
<br/>
<a href="<?=$this->url(array('controller'=>'logo','action'=>'delete','image'=>$this->image))?>" id="logo_delete">
Supprimer le logo existant</a>
@ -46,7 +46,7 @@ var options = {
$('#crop').ajaxForm(options);
</script>
<img src="/fichier/logo/<?=$this->image?>" id="cropbox" />
<img src="/file/image/logo/q/<?=$this->image?>" id="cropbox" />
<br/>
<form id="crop" name="crop"
action="<?=$this->url(array('controller'=>'logo', 'action'=>'crop'),null, true);?>" method="post">

View File

@ -1,7 +1,7 @@
<?php if ( !empty($this->logo) ){?>
<div style="text-align:center;">
<img src="/fichier/logo/<?=$this->logo?>"/>
<img src="/file/image/logo/q/<?=$this->logo?>"/>
<br/>
<a id="logo_crop" href="<?=$this->url(array('controller'=>'logo', 'action'=>'crop', 'logo'=>$this->logo), null, true)?>">
Editer l'image</a>

View File

@ -2,7 +2,7 @@
<div style="text-align:center;">
<?php if ($this->image):?>
<img src="/fichier/logo/<?=$this->image?>"/>
<img src="/file/image/logo/q/<?=$this->image?>"/>
<br/>
<a id="logo_crop" href="<?=$this->url(array('controller'=>'logo', 'action'=>'crop', 'image'=>$this->image), null, true)?>">
Editer l'image</a>

View File

@ -2,7 +2,7 @@
<?php if ($this->image): ?>
<div style="text-align:center;">
<img src="/fichier/logo/<?=$this->image?>" />
<img src="/file/image/logo/q/<?=$this->image?>" />
<br/>
<a id="logo_crop" href="<?=$this->url(array('controller'=>'logo', 'action'=>'crop', 'image'=>$this->image), null, true)?>">
Editer l'image</a>

View File

@ -30,7 +30,7 @@ class Logo
} else {
$strSize = '';
}
return '<img src="/fichier/logo/'.$logo.'" '.$strSize.'/>';
return '<img src="/file/image/logo/q/'.$logo.'" '.$strSize.'/>';
}
return '';
}