本文整理汇总了PHP中Kit::updateKitChannel方法的典型用法代码示例。如果您正苦于以下问题:PHP Kit::updateKitChannel方法的具体用法?PHP Kit::updateKitChannel怎么用?PHP Kit::updateKitChannel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Kit
的用法示例。
在下文中一共展示了Kit::updateKitChannel方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
$data['menu'] = "divSystemKits";
if ($_GET) {
$id = $_GET['id'];
$kitName = $kitAPI->getKitName($id);
}
if ($_POST) {
$skipRedirect = false;
if ($kitName != $_POST['kitName']) {
$renameSuccess = $kitAPI->updateKitName($_POST['id'], $_POST['kitName']);
if (!$renameSuccess['success']) {
$renameMesg = $renameSuccess['mesg'];
$skipRedirect = true;
}
}
for ($n = 0; $n < MAX_CHANNELS; $n++) {
$kitAPI->updateKitChannel($_POST['id'], $_POST['channelId'][$n], $_POST['channelName'][$n], $_POST['channelOgg'][$n], $_POST['channelMp3'][$n]);
}
if (!$skipRedirect) {
header('Location: ../');
}
}
if ($_GET) {
$id = $_GET['id'];
$kitChArr = $kitAPI->getKitChannels($id);
if ($kitChArr) {
$tableStr = "\n <div class='contentBlock' style='width: 400px;'>\n <div class='contentBlockHeader'>\n {$kitName}\n </div>\n <div id='kitBlock' class='contentBlockBody'>\n <span class='label'>Kit Name:</span><br />\n <input type='text' name='kitName' value='{$kitName}' /><span class='error'>{$renameMesg}</span><br /><br />\n <table>\n <tr>\n <th>Channel</th>\n <th>Name</th>\n <th></th>\n <th></th>\n <th></th>\n </tr>";
for ($n = 0; $n < MAX_CHANNELS; $n++) {
$tableStr .= "\n <tr>\n <td>\n <select name='channelId[{$n}]' value='" . $n . "'>";
for ($m = 0; $m < MAX_CHANNELS; $m++) {
if ($n == $m) {
$default = "selected='selected'";