Blame view

sources/apps/contacts/templates/part.cropphoto.php 1.27 KB
03e52840d   Kload   Init
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
  <?php
  $id = $_['id'];
  $tmpkey = $_['tmpkey'];
  $requesttoken = $_['requesttoken'];
  ?>
  <?php if(OC_Cache::hasKey($tmpkey)) { ?>
  <img id="cropbox" src="<?php print_unescaped(OCP\Util::linkToAbsolute('contacts', 'tmpphoto.php')); ?>?tmpkey=<?php p($tmpkey); ?>" />
  <form id="cropform"
  	class="coords"
  	method="post"
  	enctype="multipart/form-data"
  	target="crop_target"
  	action="<?php print_unescaped(OCP\Util::linkToAbsolute('contacts', 'ajax/savecrop.php')); ?>">
  
  	<input type="hidden" id="id" name="id" value="<?php p($id); ?>" />
  	<input type="hidden" name="requesttoken" value="<?php p($requesttoken); ?>">
  	<input type="hidden" id="tmpkey" name="tmpkey" value="<?php p($tmpkey); ?>" />
  	<fieldset id="coords">
  	<input type="hidden" id="x1" name="x1" value="" />
  	<input type="hidden" id="y1" name="y1" value="" />
  	<input type="hidden" id="x2" name="x2" value="" />
  	<input type="hidden" id="y2" name="y2" value="" />
  	<input type="hidden" id="w" name="w" value="" />
  	<input type="hidden" id="h" name="h" value="" />
  	</fieldset>
  	<iframe name="crop_target" id='crop_target' src=""></iframe>
  </form>
  <script type="text/javascript" src="<?php print_unescaped(OC_Helper::linkTo('contacts/js', 'jcrop.js'));?>"></script>
  <?php
  } else {
  	p($l->t('The temporary image has been removed from cache.'));
  }