示例#1
0
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * MMC 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 MMC; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
require "modules/squid/includes/squid.inc.php";
if (isset($_POST["btdell"])) {
    delElementInList($list, $_POST["eltdata"]);
    $serviceName = getServiceName();
    $n = new NotifyWidgetSuccess(_T("Item deleted.", "squid"));
    handleServicesModule($n, array($serviceName => _T("Proxy", "squid")), "reload");
    redirectTo(urlStrRedirect($page));
}
if (isset($_GET["eltdata"])) {
    $data = urldecode($_GET["eltdata"]);
    ?>
	<form action="<?php 
    echo urlStr($page_delete);
    ?>
" method="post">
		<p><?php 
    printf(_T("You will remove  <b>%s</b>"), $data);
    ?>
</p><br />
$service = explode('|', $book['services']);
?>
                        <br/><br/>
                        <div class="col-sm-6">
                            <table class="table table-bordered">
                                <tr>
                                    <th class="text-center">Service</th>
                                    <th class="text-center">Price</th>
                                </tr>
                                <?php 
$countserv = 1;
foreach ($service as $se) {
    ?>
                                    <tr>
                                        <td><?php 
    echo getServiceName((int) $se);
    ?>
</td>
                                        <td class="text-right">&#2547;&nbsp;<?php 
    echo getServicePrice((int) $se);
    ?>
</td>
                                    </tr>
                                <?php 
}
?>
                            </table>
                        </div>
                        <div class="col-sm-6"></div>
                    </div>
                </div>