Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New layout, added Material design, and shortcuts #254

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# https://git-scm.com/docs/gitignore
# https://help.github.com/articles/ignoring-files
# Example .gitignore files: https://github.com/github/gitignore
/nbproject
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ WWW SQL Designer was created by [Ondrej Zara](http://ondras.zarovi.cz/) and is b

If you wish to support this project, <a href='https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3340079'><img src='https://www.paypal.com/en_GB/i/btn/btn_donate_LG.gif' alt='Donate at PayPal' title='Donate at PayPal' /></a> at PayPal!

## Shortcuts

- **F2** = save local
- **F4** = load local

- **a** = New table
- **e** = Edit table | Edit row
- **f** = add field
- **x** = create foreign key
- **c** = connect foreign key
- **+** / **-** = zoom in or out

# News

## Moved to GitHub
Expand Down
2 changes: 1 addition & 1 deletion backend/asp-file/Default.aspx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="backend_asp_file_Default" validateRequest="false" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="backend_asp_file_Default" validateRequest="false" %>
140 changes: 70 additions & 70 deletions backend/asp-file/Default.aspx.cs
Original file line number Diff line number Diff line change
@@ -1,70 +1,70 @@
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
public partial class backend_asp_file_Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear();
string action = Request.Params["action"].ToLower();
if (action.Equals("list"))
{
list();
}
if (action.Equals("load"))
{
load();
}
if (action.Equals("save"))
{
save();
}
Response.End();
}
private void list()
{
string[] filePaths = Directory.GetFiles(Server.MapPath("data"));
foreach (string filePath in filePaths)
{
Response.Write(Path.GetFileName(filePath) + "\n");
}
}
private void load()
{
string fNaam = "data/" + Request.Params["keyword"].ToLower();
Response.ContentType = "text/xml";
if (File.Exists(Server.MapPath(fNaam)))
{
Response.WriteFile(Server.MapPath(fNaam));
}
else
{
Response.StatusCode = 404;
}
}
private void save()
{
string fNaam = "data/" + Request.Params["keyword"].ToLower();
FileStream fs = new FileStream(Server.MapPath(fNaam), FileMode.Create);
byte[] buffer = new byte[1024];
int count;
while ((count = Request.InputStream.Read(buffer, 0, buffer.Length)) != 0)
fs.Write(buffer, 0, count);
fs.Close();
}
}
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;

public partial class backend_asp_file_Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear();

string action = Request.Params["action"].ToLower();

if (action.Equals("list"))
{
list();
}

if (action.Equals("load"))
{
load();
}

if (action.Equals("save"))
{
save();
}

Response.End();
}

private void list()
{
string[] filePaths = Directory.GetFiles(Server.MapPath("data"));
foreach (string filePath in filePaths)
{
Response.Write(Path.GetFileName(filePath) + "\n");
}
}

private void load()
{
string fNaam = "data/" + Request.Params["keyword"].ToLower();
Response.ContentType = "text/xml";
if (File.Exists(Server.MapPath(fNaam)))
{
Response.WriteFile(Server.MapPath(fNaam));
}
else
{
Response.StatusCode = 404;
}
}

private void save()
{
string fNaam = "data/" + Request.Params["keyword"].ToLower();
FileStream fs = new FileStream(Server.MapPath(fNaam), FileMode.Create);

byte[] buffer = new byte[1024];
int count;
while ((count = Request.InputStream.Read(buffer, 0, buffer.Length)) != 0)
fs.Write(buffer, 0, count);

fs.Close();

}
}
2 changes: 1 addition & 1 deletion backend/perl-file/index.pl
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@
else {
print $query->header(-status => "501 Not Implemented");
}


Loading