Exemplo n.º 1
0
	<table class="summary">
		<colgroup>
			<col style="width:100px">
			<col>
		</colgroup>
		<tbody>
			<tr>
				<th scope="row"><?php 
echo ImageHelper::thumbnail($Picture['path'], 60);
?>
</th>
				<td>
					<p><input size="40" type="text" id="name" name="name[<?php 
echo $Picture['id'];
?>
]" value="<?php 
echo addslashes($Picture['name']);
?>
"></p>
					<p><a class="sprite prefix delete" href="<?php 
echo UrlHelper::path(array('action' => 'delete'), $Picture['id']);
?>
">Supprimer cette image</a></p>
				</td>
			</tr>
		</tbody>
	</table>
Exemplo n.º 2
0
<div id="header" class="row">
	<div id="logo"><a href="<?php 
echo UrlHelper::path('/');
?>
"><?php 
echo Config::get('project.name');
?>
</a></div>        
<?php 
echo $this->partial('user');
?>
</div><!-- #header -->

Exemplo n.º 3
0
					<tr class="<?php 
echo ++$i % 2 ? 'odd' : 'even';
?>
">
						<th scope="row">Dimensions</th>
						<td><?php 
echo $Picture['width'];
?>
x<?php 
echo $Picture['height'];
?>
 pixels</td>
					</tr>

				</tbody>
			</table>

			<div>
				<input class="button" type="submit" value="Enregistrer"> 
				ou
				<a class="cancel" href="<?php 
echo UrlHelper::path(array('action' => 'index'));
?>
">Annuler</a> 
			</div>

		</form>
		</div><!-- .form -->
  	</div><!-- #main -->
</div><!-- #content -->
echo $Picture['height'];
?>
 pixels<br>
						<?php 
echo ucfirst($Picture['type']);
?>
<br>
					</td>
					<td><?php 
echo DateHelper::format($Picture['created_at'], '{dd} {month} {yy} à {HH}:{MM}');
?>
</td>
					<td>
						<ul class="actions">
							<li><a class="sprite prefix edit insert" title="Insertion" href="<?php 
echo UrlHelper::path(array('action' => 'insertionEdit'), $Picture['id']);
?>
">Insérer</a></li>
						</ul>
					</td>
				</tr>
				<? endforeach ?>

				<? if (!count($Pictures)) : ?>
				<tr class="empty <?php 
echo ++$i % 2 ? 'odd' : 'even';
?>
">
					<td colspan="100">Aucune image.</td>
				</tr>
				<? endif ?>
Exemplo n.º 5
0
/js/uploadify/cancel.png',
		'script': 			'<?php 
echo base();
?>
/library/upload',
		'fileDataName':		'uploaded',
		'queueID': 			'uploading',
		'buttonText':		'Parcourir...',
		'auto': 			true,
		'multi': 			true,
		'onError': function(evt, queueID, fileObj, response) {
			alert('Erreur : '+response);	
		},
		'onComplete': function(evt, queueID, fileObj, response) {
			$.get('<?php 
echo UrlHelper::path(array('action' => 'name'));
?>
/'+response, function(data) {
				$('#uploaded').append(data);
			});
		},
		'onAllComplete': function() {
			$('#save').show();
		}
	});
	
	$('.delete').live('click', function() {
		if (confirm("<?php 
echo __("Etes-vous sûr ?");
?>
")) {
Exemplo n.º 6
0
<div id="navbar" class="row">
	<ul class="menu horizontal sf-menu">
		<li<?php 
echo UrlHelper::getCurrentClass(array('controller' => 'default'));
?>
><a href="<?php 
echo UrlHelper::path(array('controller' => 'default'));
?>
">Accueil</a>
			<ul>
				<li><a href="<?php 
echo UrlHelper::path(array('controller' => 'default'));
?>
">Retour</a></li>
			</ul>
		</li>
	</ul>
</div><!-- #navbar -->
Exemplo n.º 7
0
echo UrlHelper::path(array('action' => 'dump-data'));
?>
">Dump Data</a></li>
    </ul>
    
    <h2>Generate</h2>
    <ul>
        <li><a class="confirm" href="<?php 
echo UrlHelper::path(array('action' => 'generate-schema'));
?>
">Generate Schema</a></li>
        <li><a class="confirm" href="<?php 
echo UrlHelper::path(array('action' => 'generate-models'));
?>
">Generate Models</a></li>
        <li><a class="confirm" href="<?php 
echo UrlHelper::path(array('action' => 'generate-tables'));
?>
">Generate Tables</a></li>
    </ul>
  
    <script type="text/javascript">
        $(function() {
			$('.confirm').click(function() {
				if (confirm('Etes-vous sûr de voulior lancer ce script ?')) {
					return true;
				}
				return false;
			});
        });
    </script>