Development

#3315: CryptographpHelper.php

You must first sign up to be able to contribute.

Ticket #3315: CryptographpHelper.php

File CryptographpHelper.php, 0.7 kB (added by oloynet, 9 months ago)
Line 
1 <?php
2
3 function cryptographp_picture()
4 {
5     $ret = "<img id=\"cryptogram\" src=\"".url_for('cryptographp/index')."\" alt=\"Cryptographp Picture\" />";
6     return $ret;
7 }
8
9 function cryptographp_reload()
10 {
11     $reload_img = sfConfig::get('app_cryptographp_reloadimg', '/sfCryptographpPlugin/images/reload');
12     //$ret = "<a style=\"cursor:pointer\" onclick=\"javascript:document.getElementById('cryptogram').src='".url_for('cryptographp/index?id=')."/'+Math.round(Math.random(0)*1000)+1\">".image_tag('/sfCryptographpPlugin/images/reload')."</a>";
13     $ret = "<a style=\"cursor:pointer\" onclick=\"javascript:document.getElementById('cryptogram').src='".url_for('cryptographp/index')."?id=/'+Math.round(Math.random(0)*1000)+1\">".image_tag($reload_img)."</a>";
14     return $ret;
15 }
16
17 ?>