<commit_before><?
require_once ("common.php");
check_user ();
html_start ("Main Menu");
?>
<H3>Manage Playlist Templates</H3>

<a href="newtemplate.php">Create New Playlist Template</a>

<form name = "select_template" action="edittemplate.php" method="post">
<select name="template_id">
<? display_template_list (-1); ?>
</select>
<input type = "submit" value="Edit Template">
</form>

<H3>Manage schedule</H3>

<ul>
<li><a href = "addtimeslot.php">Add Time Slot</a></li>
<li><a href = "viewschedule.php">View/edit Schedule</a></li>
<li><a href = "copyschedule.php">Copy Time Slots</a></li>
</ul>

<a href = "updatedb.php">Update Database</a>
<?
html_end ();
?>
<commit_msg>php/main.php: Copy schedule date selector from viewschedule.php.   currently it is still needed in viewschedule.php because the interface  does not remember the date selection from one operation to the next.   and even if it does, if there is a problem with the dates entered, it  will still be needed.  Perhaps this is a good argument for putting it in  its own file to save code duplication.<commit_after><?
require_once ("common.php");
check_user ();
html_start ("Main Menu");
?>
<H3>Manage Playlist Templates</H3>

<a href="newtemplate.php">Create New Playlist Template</a>

<form name = "select_template" action="edittemplate.php" method="post">
<select name="template_id">
<? display_template_list (-1); ?>
</select>
<input type = "submit" value="Edit Template">
</form>

<H3>Manage schedule</H3>

<a href = "addtimeslot.php">Add Time Slot</a>

<form name = "view_schedule" action="viewschedule.php" method="post">
<div>
<label for="start_date">Enter start date :</label>
<input type = text name="start_date" id="start_date">
</div>
<div>
<label for="end_date">Enter end date:</label>
<input type = text name="end_date" id="end_date">
</div>
<input type="submit" value="View Schedule">
</form>

<a href = "copyschedule.php">Copy Time Slots</a>

<a href = "updatedb.php">Update Database</a>
<?
html_end ();
?>

{'fraction_non_alphanumeric': 0.1689291101055807, 'fraction_numerical': 0.005027652086475616, 'mean_word_length': 5.655518394648829, 'pattern_counts': {'":': 0, '<': 66, '<?xml version=': 0, '>': 66, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3982158', 'n_tokens_mistral': 670, 'n_tokens_neox': 670, 'n_words': 199}