diff --git a/resources/inc/class.ui_resources.inc.php b/resources/inc/class.ui_resources.inc.php index e5196f8210..71b2159b06 100755 --- a/resources/inc/class.ui_resources.inc.php +++ b/resources/inc/class.ui_resources.inc.php @@ -19,6 +19,7 @@ class ui_resources 'index' => True, 'edit' => True, 'show' => True, + 'select' => True, 'admin' => True, 'writeLangFile' => True ); @@ -78,6 +79,8 @@ class ui_resources case 'view': list($id) = each($content['nm']['rows']['view']); return $this->show($id); + case 'select': // note: this is a popup dialog + return $this->select(); case 'bookable': case 'buyable': } @@ -296,6 +299,113 @@ class ui_resources } + /** + * select resources + * + * @author Lukas Weiss + */ + function select() + { + if (isset($_GET['name'])) $name = $_GET['name']; + $content=array('js_id' => $name) + $content['js'] = ""; + $sel_options = array(); + $no_button = array(); + $preserv = $content; + $this->tmpl->read('resources.resource_select'); + $this->tmpl->exec('resources.ui_resources.select',$content,$sel_options,$no_button,$preserv,2); +} + /** * deletes a resource * diff --git a/resources/templates/default/app.css b/resources/templates/default/app.css index 788d56412f..95a8ab03a7 100644 --- a/resources/templates/default/app.css +++ b/resources/templates/default/app.css @@ -1,2 +1,4 @@ .buttonbox {vertical-align: top;} .tdAppbox {width: 100%;} +.big {font-weight: bold;} +select.sel {width: 100%;} \ No newline at end of file