<td><span class="tooltip spanIcon ui-icon ui-icon-help" title="<?php echo Language::string(680); ?> "></span></td> <td class="fullWidth"> <div class="horizontalMargin"> <select id = "selectUserWorkspaceShareDialog" class = "fullWidth ui-widget-content ui-corner-all"> <option value = "0"><<?php echo Language::string(650); ?> ></option> <?php $sql = sprintf("SELECT * FROM `%s`.`%s` WHERE `owner_id`='%s' ORDER BY `name` ASC", Ini::$db_master_name, UserWorkspace::get_mysql_table(), $owner->id); $z = mysql_query($sql); while ($r = mysql_fetch_array($z)) { $ws = UserWorkspace::from_mysql_result($r); $ignore = false; if (!$ignore) { ?> <option value="<?php echo $ws->id; ?> " name="<?php echo $ws->name; ?> " <?php echo array_key_exists("current_workspace_id", $_POST) && $_POST['current_workspace_id'] == $ws->id ? "selected" : ""; ?> ><?php echo $ws->get_formatted_name(); ?>