Skip to content
This repository has been archived by the owner on May 31, 2020. It is now read-only.

Warning Points #28

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Warning Points #28

wants to merge 8 commits into from

Conversation

DubStepMad
Copy link

Allows warning points to be set in the players table with the same colum (warning) used in 'notes'. This does not create the colum in the 'players' table.

Other edit allows the warning points to be displayed on the users account information.

Adds a case logging & log page, Uses a modified reimbursement_log table which uses the statement found here: https://pastebin.com/vBbV11qD
Fix for warning pointsnot being added and error 'column can not be null' has been fixed.
notes.php Outdated
echo '<td>'."<input class='form-control' type=text name=note value=''> </td>";
echo '<td>'."<input class='btn btn-primary btn-outline' type=submit name=update value=Update".'> </td>';
echo "<td style='display:none;'>".'<input type=hidden name=hidden value='.$row['uid'].'> </td>';
echo "<td style='display:none;'>".'<input type=hidden name=hidden value='.$row['playerid'].'> </td>';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer the use of UID here over playerid due to 5.0 changing the table to be pid.

@DubStepMad
Copy link
Author

DubStepMad commented May 4, 2017 via email

Allows the use of uid instead of playerid. Since all dbs use uid to link a player, there is no need to use playerid unless a new framework uses it.
notes.php Outdated
@@ -80,8 +80,8 @@
echo '<tr>';
echo '<td>'.$row['uid'].' </td>';
echo '<td>'.$row['name'].' </td>';
echo '<td>'.$row['aliases'].' </td>';
echo '<td>'."<select class='form-control' name='warn'><option value='4'>Commendation</option><option value='1' selected='selected'>Warning</option><option value='2'>Caution</option><option value='3'>Big Caution</option></select> </td>";
echo '<td>'.$row['playerid'].' </td>';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@DubStepMad
Copy link
Author

DubStepMad commented May 10, 2017 via email

Removal of playerid  being used (Still there on the concat search) and added so that the current warning points can be viewed.
Creates the warning column in the players table and adds a new table to use the for the staff notes. It uses the notes table already for the warning .
@itsJarrett
Copy link
Contributor

Very interesting concept.

@itsJarrett
Copy link
Contributor

@Jason2605 might want to make your decisions whether or not to include this. Other contributions to the repo are creating conflicts. 🕐

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants