/usr/share/horde/ansel/templates/faces/define.inc is in php-horde-ansel 3.0.5+debian0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | <?php echo $tabs->render('image'); ?>
<h1 class="header"><?php echo $title ?></h1>
<link href="<?php echo Horde_Themes::img() ?>/../cropper.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function onEndCrop(coords, dimensions ) {
$('x1').value = coords.x1;
$('y1').value = coords.y1;
$('x2').value = coords.x2;
$('y2').value = coords.y2;
$('width').value = dimensions.width;
$('height').value = dimensions.height;
}
window.observe('load', function() {
new Cropper.ImgWithPreview(
'faceImage',
{ minWidth: <?php echo $conf['thumbnail']['width'] ?>,
minHeight: <?php echo $conf['thumbnail']['height'] ?>,
onEndCrop: onEndCrop,
<?php if ($x1): ?>
displayOnInit: true,
onloadCoords: { x1: <?php echo $x1 ?>, y1: <?php echo $y1 ?>, x2: <?php echo $x2 ?>, y2: <?php echo $y2 ?> },
<?php endif; ?>
previewWrap: 'previewArea' }
)
});
</script>
<div><img src="<?php echo Horde::url('faces/search/img.php'); ?>" alt="[icon]" id="faceImage" /></div>
<form method="post" action="<?php echo Horde::url('faces/search/image_save.php'); ?>">
<div class="control" style="width: <?php echo $conf['screen']['height'] ?>px">
<input type="submit" class="horde-default" name="submit" value="<?php echo _("Search") ?>" />
<input type="reset" value="<?php echo _("Reset") ?>" />
<input type="submit" class="horde-cancel" name="submit" value="<?php echo _("Cancel") ?>" />
</div>
<table style="width: <?php echo $conf['screen']['height'] ?>px">
<tr valign="top">
<td style="text-align: center; width: 33%"><div id="previewArea"></div></td>
<td>
<table class="striped">
<tr>
<td>x1:</td>
<td><input type="text" name="x1" id="x1" size="4" readonly="readonly" value="<?php echo $x1 ?>" /></td>
<td>y1:</td>
<td><input type="text" name="y1" id="y1" size="4" readonly="readonly" value="<?php echo $y1 ?>"/></td>
</tr>
<tr>
<td>x2:</td>
<td><input type="text" name="x2" id="x2" size="4" readonly="readonly" value="<?php echo $x2 ?>"/></td>
<td>y2:</td>
<td><input type="text" name="y2" id="y2" size="4" readonly="readonly" value="<?php echo $y2 ?>"/></td>
</tr>
<tr>
<td><?php echo _("width") ?>:</td>
<td><input type="text" name="width" id="width" size="4" readonly="readonly" value="<?php echo $width ?>"/></td>
<td><?php echo _("height") ?></td>
<td><input type="text" name="height" id="height" size="4" readonly="readonly" value="<?php echo $height ?>"/></td>
</tr>
</table>
</td>
</tr>
</table>
</from>
|