diff options
author | Filipp Lepalaan <filipp@mac.com> | 2010-09-01 18:28:32 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2010-09-01 18:28:32 +0300 |
commit | f9777c989ce04d33288655ea4d1c274bd5b90b5f (patch) | |
tree | b2a04f33a07516e1d16095031d30def81b57cf0d /MainView.php | |
parent | dead03e955367d4635764251f62256365c01b221 (diff) | |
download | main-f9777c989ce04d33288655ea4d1c274bd5b90b5f.tar.gz main-f9777c989ce04d33288655ea4d1c274bd5b90b5f.tar.bz2 main-f9777c989ce04d33288655ea4d1c274bd5b90b5f.zip |
return row count on delete
Diffstat (limited to 'MainView.php')
-rw-r--r-- | MainView.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/MainView.php b/MainView.php index 2e5ad0c..2c3be45 100644 --- a/MainView.php +++ b/MainView.php @@ -32,6 +32,20 @@ class MainView } + // $this->mainView->form('/some/save')-> + function action($action) + { + $port = ($_SERVER['SERVER_PORT'] > 80) ? ':'.$_SERVER['SERVER_PORT'] : ''; + $base = str_replace('index.php', '', $_SERVER['PHP_SELF']); + return 'action="'.$base.$action.$port.'"'; + } + + function form($action) + { + $port = ($_SERVER['SERVER_PORT'] > 80) ? ':'.$_SERVER['SERVER_PORT'] : ''; + $out = '<form action="'.$action.$port.'" accept-charset="utf-8"'; + } + function input($params) { return $this->tag('input', $params); |