本文整理汇总了PHP中Kit::deleteKit方法的典型用法代码示例。如果您正苦于以下问题:PHP Kit::deleteKit方法的具体用法?PHP Kit::deleteKit怎么用?PHP Kit::deleteKit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Kit
的用法示例。
在下文中一共展示了Kit::deleteKit方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: max
array_push($channelArr, $channel);
}
$maxChannels = max($channelArr);
if ($maxChannels > 1) {
foreach ($channelArr as $key => $val) {
if ($val == 1) {
$fileName = $downloadDir . $kitId . '/' . $key . ".ogg";
exec("sox " . $fileName . " " . $fileName . " remix 1 1");
}
}
}
}
}
}
}
if ($_GET) {
$deleteId = $_GET['delete'];
$kitAPI->deleteKit($deleteId);
header('Location: .');
}
$systemKits = $kitAPI->getKits();
$tableStr = "<table>";
foreach ($systemKits as $systemKit) {
$tableStr .= "\n <tr>\n <td width='80%'><span class='clsTableText'>" . $systemKit['name'] . "</span></td>\n <td width='10%'><a href='edit/?id=" . $systemKit['id'] . "'><span class='smallLink'>[edit]</span></a></td>\n <td width='10%'><a href='#' onclick='deleteKit(" . $systemKit['id'] . "); return false;'><span class='smallLink'>[delete]</span></a></td>\n </tr>";
}
$tableStr .= "</table>";
$data['title'] = APP_NAME . " Admin";
$data['headerTitle'] = APP_NAME . " - Admin";
$data['menu'] = "divSystemKits";
$data['content'] = "\n <script type='text/javascript'>\n function deleteKit(id) {\n var c = confirm('Are you sure you want to delete this kit? This can\\'t be undone!');\n if(c) {\n window.location='?delete=' + id;\n }\n }\n </script>\n <div class='contentBlock'>\n <div class='contentBlockHeader'>Create Kit</div>\n <div class='contentBlockBody'>\n <span class='{$newKitSuccess}'>" . $newKitStatus['mesg'] . "</span>\n <form method='post' action=''>\n <input type='hidden' name='action' value='newKit' />\n <input type='text' name='newKitName' />\n <input type='submit' value='Create' />\n </form>\n </div>\n </div>\n <div class='contentBlock'>\n <div class='contentBlockHeader'>Kits</div>\n <div class='contentBlockBody'>{$tableStr}</div>\n </div>\n <div class='contentBlock'>\n <div class='contentBlockHeader'>Synchronize Kits</div>\n <div class='contentBlockBody'>\n <form method='post' action=''>\n <input type='hidden' name='action' value='syncKits' />\n <input type='submit' value='Sync Now' />\n </form>\n </div>\n </div>\n ";
$template->render($data);