| 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 |
|
|---|
| 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 |
?> |
|---|