Ejemplo n.º 1
0
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::CONSULTANT_LEVEL);
$database_config_user = Database_Config_User::getInstance();
$name = $_GET['name'];
$database_config_user->setActiveWorkbench($name);
@($preset = $_GET['preset']);
if (isset($preset)) {
    Workbench_Logic::setURLs(Workbench_Logic::defaultURLs($preset));
    Workbench_Logic::setWidths(Workbench_Logic::defaultWidths($preset));
    Workbench_Logic::setHeights(Workbench_Logic::defaultHeights($preset));
}
if (isset($_POST['save'])) {
    $urls = array();
    $widths = array();
    $row_heights = array();
    for ($row = 1; $row <= 3; $row++) {
        for ($column = 1; $column <= 5; $column++) {
            $urls[] = $_POST["url{$row}{$column}"];
            $widths[] = $_POST["width{$row}{$column}"];
        }
        $row_heights[] = $_POST["height{$row}"];
    }
    Workbench_Logic::setURLs($urls);
Ejemplo n.º 2
0
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
page_access_level(Filter_Roles::CONSULTANT_LEVEL);
$database_config_user = Database_Config_User::getInstance();
@($add = $_POST['add']);
if (isset($add)) {
    $database_config_user->setActiveWorkbench($add);
    Workbench_Logic::setURLs(Workbench_Logic::defaultURLs(0));
    Workbench_Logic::setWidths(Workbench_Logic::defaultWidths(0));
    Workbench_Logic::setHeights(Workbench_Logic::defaultHeights(0));
}
@($workbenches = $_POST['workbenches']);
if (isset($workbenches)) {
    $workbenches = explode(",", $workbenches);
    Workbench_Logic::orderWorkbenches($workbenches);
    die;
}
$header = new Assets_Header(Locale_Translate::_("Workbenches"));
$header->jQueryUIOn("sortable");
$header->run();
$view = new Assets_View(__FILE__);
@($remove = $_GET['remove']);
if (isset($remove)) {