mirror of
https://codeberg.org/portospaceteam/E-42.git
synced 2025-06-24 01:57:33 +01:00
update new-members nav bar and delete some useless files
This commit is contained in:
parent
13e3664f47
commit
1e4b1dd5f9
@ -22,9 +22,6 @@
|
|||||||
<UL>
|
<UL>
|
||||||
<LI><A href="/">Back</A></LI>
|
<LI><A href="/">Back</A></LI>
|
||||||
<LI><A href="">Staff</A></LI>
|
<LI><A href="">Staff</A></LI>
|
||||||
<LI><A href="https://docs.google.com/spreadsheets/d/1ZWNEMillDsazFKvDcpFJw7AXnhd0d832PTYg6xVqTRE/edit?usp=sharing">Availability</A>
|
|
||||||
</LI>
|
|
||||||
<LI><A href="https://blog.diogo.site/2022-08-12-rocket">Situation Report</A></LI>
|
|
||||||
<LI><A href="https://drive.google.com/drive/folders/13IT6hPvnLLfGPnsecII5t-82X5qM5up0">Drive</A></LI>
|
<LI><A href="https://drive.google.com/drive/folders/13IT6hPvnLLfGPnsecII5t-82X5qM5up0">Drive</A></LI>
|
||||||
<LI><A href="https://codeberg.org/portospaceteam">Codeberg</A></LI>
|
<LI><A href="https://codeberg.org/portospaceteam">Codeberg</A></LI>
|
||||||
<LI><A href="new-member-orientation.html">New Members</A></LI>
|
<LI><A href="new-member-orientation.html">New Members</A></LI>
|
||||||
@ -48,7 +45,7 @@
|
|||||||
|
|
||||||
<UL id="staffList">
|
<UL id="staffList">
|
||||||
|
|
||||||
<li><a href="members/Afonso">Afonso</a></li></UL>
|
</UL>
|
||||||
</SECTION>
|
</SECTION>
|
||||||
</MAIN>
|
</MAIN>
|
||||||
|
|
||||||
|
@ -1,72 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
|
||||||
<title>Staff Details: Afonso | B-10 - Porto Space Team</title>
|
|
||||||
<meta name="author" content="Afonso">
|
|
||||||
<link rel="stylesheet" href="https://diogo.site/assets/css/main.css" type="text/css">
|
|
||||||
<link rel="shortcut icon" href="about:blank">
|
|
||||||
<script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
|
|
||||||
<script src="/js/pageEditor.js"></script>
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<header>
|
|
||||||
<div id="header-content">
|
|
||||||
<h1>B-10 - Porto Space Team</h1>
|
|
||||||
<h2>Staff Details: Afonso</h2>
|
|
||||||
<nav>
|
|
||||||
<ul>
|
|
||||||
<li><a href="/B-10/">Back</a></li>
|
|
||||||
<li><a href="#">Profile</a></li>
|
|
||||||
<li><a href="https://codeberg.org/portospaceteam/B-10/src/branch/master/members/Afonso/reports">Reports</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
<style>
|
|
||||||
#edit_button{
|
|
||||||
float: right;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
#save_page{
|
|
||||||
margin-top: 2em;
|
|
||||||
padding: 0.25em;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
|
|
||||||
<main>
|
|
||||||
<span onclick="editPage()" id="edit_button" class="material-symbols-outlined">
|
|
||||||
edit
|
|
||||||
</span>
|
|
||||||
<section id="mytextarea"><h3>Past Responsibilities</h3>
|
|
||||||
<p>TODO</p>
|
|
||||||
<h3>Current Responsibilities</h3>
|
|
||||||
<p>TODO</p>
|
|
||||||
<h3>Relevant Education background</h3>
|
|
||||||
<p>TODO</p>
|
|
||||||
<h3>About</h3>
|
|
||||||
<p>TODO</p></section>
|
|
||||||
|
|
||||||
<input id="save_page" style="display: none;" type="button" value="Save File" onclick="savePage('Afonso', 'B-10')">
|
|
||||||
</main>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<footer>
|
|
||||||
<p><small>Unless stated otherwise, you can assume <a href="https://creativecommons.org/licenses/by-sa/4.0/">Attribution-ShareAlike 4.0 International (CC BY-SA
|
|
||||||
4.0)</a>.</small></p>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
@ -15,19 +15,11 @@
|
|||||||
<H1>B-10 HR Department - Porto Space Team</H1>
|
<H1>B-10 HR Department - Porto Space Team</H1>
|
||||||
<NAV>
|
<NAV>
|
||||||
<UL>
|
<UL>
|
||||||
|
<LI><A href="/B-10/">Back</A></LI>
|
||||||
<LI><A href="/B-10/">Staff</A></LI>
|
<LI><A href="/B-10/">Staff</A></LI>
|
||||||
<LI><A
|
<LI><A href="https://drive.google.com/drive/folders/13IT6hPvnLLfGPnsecII5t-82X5qM5up0">Drive</A></LI>
|
||||||
href="https://docs.google.com/spreadsheets/d/1ZWNEMillDsazFKvDcpFJw7AXnhd0d832PTYg6xVqTRE/edit?usp=sharing">Availability</A>
|
|
||||||
</LI>
|
|
||||||
<LI><A href="https://blog.diogo.site/2022-08-12-rocket">Situation Report</A></LI>
|
|
||||||
<LI><A
|
|
||||||
href="https://kanban.undefinedhackers.net/?controller=BoardViewController&action=show&project_id=3">Kanban</A>
|
|
||||||
[<A
|
|
||||||
href="https://kanban.undefinedhackers.net/?controller=BoardViewController&action=readonly&token=5462eb4b047a0a8828cafb4d0f09461b970c07c1d31801536558542f723a">P</A>]
|
|
||||||
</LI>
|
|
||||||
<LI><A href="https://drive.google.com/drive/u/0/folders/1fVqTATvoZ9vamQRb-SL8uIvnawgUTdEN">Drive</A></LI>
|
|
||||||
<LI><A href="https://codeberg.org/portospaceteam">Codeberg</A></LI>
|
<LI><A href="https://codeberg.org/portospaceteam">Codeberg</A></LI>
|
||||||
<LI><A href="#">New Members</A></LI>
|
<LI><A href="new-member-orientation.html">New Members</A></LI>
|
||||||
</UL>
|
</UL>
|
||||||
</NAV>
|
</NAV>
|
||||||
</DIV>
|
</DIV>
|
||||||
|
@ -39,68 +39,86 @@
|
|||||||
$html->asXml($path);
|
$html->asXml($path);
|
||||||
|
|
||||||
// create member profile
|
// create member profile
|
||||||
$member_page = __DIR__ . '\\..\\' . $departmemt.'\\members\\'.$name;
|
$member_page = __DIR__ . '/../' . $departmemt.'/members/'.$name;
|
||||||
|
|
||||||
|
mkdir($member_page.'/reports', 0777, true);
|
||||||
|
|
||||||
mkdir($member_page.'\\reports', 0777, true);
|
$page = fopen($member_page.'/index.html', "w");
|
||||||
|
|
||||||
$page = fopen($member_page.'\\index.html', "w");
|
|
||||||
|
|
||||||
|
|
||||||
$default_page = '<!DOCTYPE html>
|
$default_page = '<!DOCTYPE html>
|
||||||
<HTML lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
||||||
|
<title>Staff Details: '.$name.' | '.$departmemt.' - Porto Space Team</title>
|
||||||
|
<meta name="author" content="'.$name.'">
|
||||||
|
<link rel="stylesheet" href="https://diogo.site/assets/css/main.css" type="text/css">
|
||||||
|
<link rel="shortcut icon" href="about:blank">
|
||||||
|
<script src="https://cdn.tiny.cloud/1/no-api-key/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
|
||||||
|
<script src="/js/pageEditor.js"></script>
|
||||||
|
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
<div id="header-content">
|
||||||
|
<h1>'.$departmemt.' - Porto Space Team</h1>
|
||||||
|
<h2>Staff Details: '.$name.'</h2>
|
||||||
|
<nav>
|
||||||
|
<ul>
|
||||||
|
<li><a href="/'.$departmemt.'/">Back</a></li>
|
||||||
|
<li><a href="#">Profile</a></li>
|
||||||
|
<li><a href="https://codeberg.org/portospaceteam/'.$departmemt.'/src/branch/master/members/'.$name.'/reports">Reports</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<hr>
|
||||||
|
<style>
|
||||||
|
#edit_button{
|
||||||
|
float: right;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
<HEAD>
|
#save_page{
|
||||||
<META http-equiv="Content-type" content="text/html;charset=UTF-8" />
|
margin-top: 2em;
|
||||||
<TITLE>Staff Details: '.$name.' | '.$departmemt.' - Porto Space Team</TITLE>
|
padding: 0.25em;
|
||||||
<META name="author" content="'.$name.'">
|
}
|
||||||
<LINK rel="stylesheet" href="https://diogo.site/assets/css/main.css" type="text/css">
|
</style>
|
||||||
<LINK rel="shortcut icon" href="about:blank">
|
|
||||||
<META name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
|
|
||||||
</HEAD>
|
|
||||||
|
|
||||||
<BODY>
|
|
||||||
<HEADER>
|
<main>
|
||||||
<DIV id="header-content">
|
<span onclick="editPage()" id="edit_button" class="material-symbols-outlined">
|
||||||
<H1>'.$departmemt.' - Porto Space Team</H1>
|
edit
|
||||||
<H2>Staff Details: '.$name.'</H2>
|
</span>
|
||||||
<NAV>
|
<section id="mytextarea"><h3>Past Responsibilities</h3>
|
||||||
<UL>
|
<p>TODO</p>
|
||||||
<LI><A href="/'.$departmemt.'/">Back</A></LI>
|
<h3>Current Responsibilities</h3>
|
||||||
<LI><A href="#">Profile</A></LI>
|
<p>TODO</p>
|
||||||
<LI><A
|
<h3>Relevant Education background</h3>
|
||||||
href="https://codeberg.org/portospaceteam/'.$departmemt.'/src/branch/master/members/'.$name.'/reports">Reports</A>
|
<p>TODO</p>
|
||||||
</LI>
|
<h3>About</h3>
|
||||||
</UL>
|
<p>TODO</p>
|
||||||
</NAV>
|
</section>
|
||||||
</DIV>
|
|
||||||
</HEADER>
|
|
||||||
|
|
||||||
<HR>
|
<input id="save_page" style="display: none;" type="button" value="Save File" onclick="savePage(\''.$name.'\', \''.$departmemt.'\')">
|
||||||
|
</main>
|
||||||
<MAIN>
|
|
||||||
<SECTION>
|
<hr>
|
||||||
<H3>Past Responsibilities</H3>
|
|
||||||
<P>TODO</P>
|
<footer>
|
||||||
<H3>Current Responsibilities</H3>
|
<p><small>Unless stated otherwise, you can assume <a href="https://creativecommons.org/licenses/by-sa/4.0/">Attribution-ShareAlike 4.0 International (CC BY-SA
|
||||||
<P>TODO</P>
|
4.0)</a>.</small></p>
|
||||||
<H3>Relevant Education background</H3>
|
</footer>
|
||||||
<P>TODO</P>
|
|
||||||
<H3>About</H3>
|
</body>
|
||||||
<P>TODO</P>
|
|
||||||
</SECTION>
|
</html>';
|
||||||
</MAIN>
|
|
||||||
|
|
||||||
<HR>
|
|
||||||
|
|
||||||
<FOOTER>
|
|
||||||
<P><SMALL>Unless stated otherwise, you can assume <A
|
|
||||||
href="https://creativecommons.org/licenses/by-sa/4.0/">Attribution-ShareAlike 4.0 International (CC BY-SA
|
|
||||||
4.0)</A>.</SMALL></P>
|
|
||||||
</FOOTER>
|
|
||||||
|
|
||||||
</BODY>
|
|
||||||
|
|
||||||
</HTML>';
|
|
||||||
|
|
||||||
fwrite($page, $default_page);
|
fwrite($page, $default_page);
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
|
|
||||||
$dom->saveHTMLFile(__DIR__ . '/../' . $departmemt . '/members/'. $name . '/index.html');
|
$dom->saveHTMLFile(__DIR__ . '/../' . $departmemt . '/members/'. $name . '/index.html');
|
||||||
|
|
||||||
|
//TODO seguranca: se mandares um script js, ele guarda no ficheiro
|
||||||
|
|
||||||
}catch(Exception $e){
|
}catch(Exception $e){
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
<BODY>
|
<BODY>
|
||||||
<HEADER>
|
<HEADER>
|
||||||
<DIV id="header-content">
|
<DIV id="header-content">
|
||||||
<H1><? echo($departmemt);?> - Porto Space Team</H1>
|
<H1><?php echo($departmemt);?> - Porto Space Team</H1>
|
||||||
<NAV>
|
<NAV>
|
||||||
<UL>
|
<UL>
|
||||||
<LI><A href="/">Back</A></LI>
|
<LI><A href="/">Back</A></LI>
|
||||||
@ -46,10 +46,10 @@
|
|||||||
<MAIN>
|
<MAIN>
|
||||||
<H2>Add New Member </H2>
|
<H2>Add New Member </H2>
|
||||||
|
|
||||||
<form action="/action/action_add_member.php" method="GET">
|
<form action="/action/add_member.php" method="GET">
|
||||||
<label for="name">Member Name </label>
|
<label for="name">Member Name </label>
|
||||||
<input id="name" type="text" name = "name"/>
|
<input id="name" type="text" name = "name"/>
|
||||||
<input type="hidden" name ="department" value = "<? echo($departmemt)?>">
|
<input type="hidden" name ="department" value = "<?php echo($departmemt); ?>">
|
||||||
<br>
|
<br>
|
||||||
<input type="submit" value ="Add Member"/>
|
<input type="submit" value ="Add Member"/>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user