diff options
author | root <root@diekershoff.homeunix.net> | 2010-12-23 23:50:54 +0100 |
---|---|---|
committer | root <root@diekershoff.homeunix.net> | 2010-12-23 23:50:54 +0100 |
commit | 2f532f579c8b3a7052f67c72af901bf2926a85bf (patch) | |
tree | 6779dd94c7bd466330839f61658a9d31170db296 /view/it/cropbody.tpl | |
parent | a1d593613d737d6f1a694adaddf515187580105c (diff) | |
parent | c55cb45855ede35e593f6a1ed5e5878144cf0ad0 (diff) | |
download | volse-hubzilla-2f532f579c8b3a7052f67c72af901bf2926a85bf.tar.gz volse-hubzilla-2f532f579c8b3a7052f67c72af901bf2926a85bf.tar.bz2 volse-hubzilla-2f532f579c8b3a7052f67c72af901bf2926a85bf.zip |
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'view/it/cropbody.tpl')
-rw-r--r-- | view/it/cropbody.tpl | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/view/it/cropbody.tpl b/view/it/cropbody.tpl new file mode 100644 index 000000000..fe072f0b5 --- /dev/null +++ b/view/it/cropbody.tpl @@ -0,0 +1,57 @@ +<h1>Ritaglia Immagine</h1> +<p id="cropimage-desc"> +Sistema il ritaglio dell'immagine per una visualizzazione ottimale. +</p> +<div id="cropimage-wrapper"> +<img src="$image_url" id="croppa" class="imgCrop" alt="" /> +</div> +<div id="cropimage-preview-wrapper" > +<div id="previewWrap" ></div> +</div> + +<script type="text/javascript" language="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; + } + + Event.observe( window, 'load', function() { + new Cropper.ImgWithPreview( + 'croppa', + { + previewWrap: 'previewWrap', + minWidth: 175, + minHeight: 175, + maxWidth: 640, + maxHeight: 640, + ratioDim: { x: 100, y:100 }, + displayOnInit: true, + onEndCrop: onEndCrop + } + ); + } + ); + +</script> + +<form action="profile_photo/$resource" id="crop-image-form" method="post" /> + +<input type="hidden" name="imagename" value="$hash" /> +<input type="hidden" name="cropfinal" value="1" /> +<input type="hidden" name="xstart" id="x1" /> +<input type="hidden" name="ystart" id="y1" /> +<input type="hidden" name="xfinal" id="x2" /> +<input type="hidden" name="yfinal" id="y2" /> +<input type="hidden" name="height" id="height" /> +<input type="hidden" name="width" id="width" /> + +<div id="crop-image-submit-wrapper" > +<input type="submit" name="submit" value="Fatto" /> +</div> + +</form> |