Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
6087232e
Commit
6087232e
authored
Jan 23, 2008
by
Clare Lenihan
Committed by
Clare Lenihan
Jan 24, 2008
Browse files
fixing redirects + minor display stuff
parent
cd0d9e2a
Changes
4
Hide whitespace changes
Inline
Side-by-side
htdocs/theme/default/templates/view/index.tpl
View file @
6087232e
...
...
@@ -74,7 +74,7 @@
<div
class=
"center"
>
{
$pagination
}
</div>
{
else
}
{
str
tag
=
"noviews"
section
=
"views"
}
<div
class=
"message"
>
{
str
tag
=
"noviews"
section
=
"views"
}
</div>
{/
if
}
{
include
file
=
"columnleftend.tpl"
}
...
...
htdocs/view/delete.php
View file @
6087232e
...
...
@@ -48,7 +48,7 @@ $form = pieform(array(
'type'
=>
'submitcancel'
,
'title'
=>
get_string
(
'deleteviewconfirm'
,
'view'
),
'value'
=>
array
(
get_string
(
'yes'
),
get_string
(
'no'
)),
'goto'
=>
get_config
(
'wwwroot'
)
.
'view/
temp.php
'
'goto'
=>
get_config
(
'wwwroot'
)
.
'view/'
)
),
));
...
...
@@ -64,6 +64,6 @@ function deleteview_submit(Pieform $form, $values) {
$view
->
delete
();
handle_event
(
'deleteview'
,
$viewid
);
$SESSION
->
add_ok_msg
(
get_string
(
'viewdeleted'
,
'view'
));
redirect
(
'/view/
temp.php
'
);
redirect
(
'/view/'
);
}
?>
htdocs/view/index.php
View file @
6087232e
...
...
@@ -32,7 +32,7 @@ define('SECTION_PLUGINNAME', 'view');
define
(
'SECTION_PAGE'
,
'index'
);
require
(
dirname
(
dirname
(
__FILE__
))
.
'/init.php'
);
require
(
'pieforms/pieform.php'
);
require
_once
(
'pieforms/pieform.php'
);
define
(
'TITLE'
,
get_string
(
'myviews'
,
'view'
));
$limit
=
param_integer
(
'limit'
,
5
);
...
...
htdocs/view/submit.php
View file @
6087232e
...
...
@@ -63,7 +63,7 @@ $form = pieform(array(
'type'
=>
'submitcancel'
,
'title'
=>
get_string
(
'submitviewconfirm'
,
'view'
,
$view
->
title
,
$group
->
name
),
'value'
=>
array
(
get_string
(
'yes'
),
get_string
(
'no'
)),
'goto'
=>
get_config
(
'wwwroot'
)
.
'view/
temp.php
'
'goto'
=>
get_config
(
'wwwroot'
)
.
'view/'
)
),
));
...
...
@@ -76,7 +76,7 @@ $smarty->display('view/submit.tpl');
function
submitview_submit
(
Pieform
$form
,
$values
)
{
global
$SESSION
,
$viewid
,
$groupid
;
update_record
(
'view'
,
array
(
'submittedto'
=>
$groupid
),
array
(
'id'
=>
$viewid
));
$SESSION
->
add_ok_msg
(
get_string
(
'submit
view
'
,
'view'
));
redirect
(
'/view/
temp.php
'
);
$SESSION
->
add_ok_msg
(
get_string
(
'
view
submit
ted
'
,
'view'
));
redirect
(
'/view/'
);
}
?>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment