diff options
author | 2011-03-07 09:04:49 +0100 | |
---|---|---|
committer | 2011-03-07 09:04:49 +0100 | |
commit | 94d2fc1815a919734353c942f224db1de4b4fcb8 (patch) | |
tree | 4168e816ead132bfa3510e272427837c3895f5e2 /emacs.d/nxhtml/tests/in/hq-071006-index.php | |
parent | d0e7674fdb1de12c8de202d4028a5d7ed3669a6e (diff) | |
download | dotfiles-94d2fc1815a919734353c942f224db1de4b4fcb8.tar.gz dotfiles-94d2fc1815a919734353c942f224db1de4b4fcb8.zip |
Django, org
* Added nxhtml, mostly for django support.
* Changed some org settings.
Diffstat (limited to 'emacs.d/nxhtml/tests/in/hq-071006-index.php')
-rw-r--r-- | emacs.d/nxhtml/tests/in/hq-071006-index.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/emacs.d/nxhtml/tests/in/hq-071006-index.php b/emacs.d/nxhtml/tests/in/hq-071006-index.php new file mode 100644 index 0000000..78b60e8 --- /dev/null +++ b/emacs.d/nxhtml/tests/in/hq-071006-index.php @@ -0,0 +1,38 @@ +<?php + +// some basic library functions +include_once 'lib.php'; + +$book = new Mybook($api_key, $secret); + +if (isset($_POST['to'])) { + $prints_id = (int)$_POST['to']; + $prints = do_step($user, $prints_id); +} else { + if (isset($_GET['to'])) { + $prints_id = (int)$_GET['to']; + } else { + $prints_id = $user; + } + $prints = get_prints($prints_id); +} + +?> +<div style="padding: 10px;"> + <h2>Hi <mb:name firstnameonly="true" uid="<?php=$user?>" useyou="false"/>!</h2><br/> + <a href="<?= $book->get_add_url() ?>">Put prints in your profile</a>. + <form method="post" action="http://my-domain.com/footprints/"> +<?php + if ($prints_id != $user) { + echo '<input type="hidden" name="to" value="' . $prints_id . '"/>'; + } else { + echo '<br/>'; + } +?> + <input value="step" type="submit"/> + </form> + <hr/> + These are <mb:name uid="<?= $prints_id ?>" possessive="true"/> Footprints:<br/> + <?php echo render_prints($prints, 10); ?> + <div style="clear: both;"/> +</div> |