diff --git a/Codes/Codes-2/index.html b/Codes/Codes-2/index.html new file mode 100755 index 0000000..3f345e2 --- /dev/null +++ b/Codes/Codes-2/index.html @@ -0,0 +1,53 @@ + + + + Kshitij's Restaurant + + + +
+

Kshitij's Restaurant

+
+ + + +
+

Welcome to Kshitij's Restaurant

+

We offer a wide variety of delicious dishes made with fresh, high-quality ingredients.

+ +

Our Menu

+ + +

About Us

+

Our restaurant has been serving the community for over 10 years. We take pride in our commitment to providing excellent service and delicious food.

+ +

Contact Us

+
+ + + + + + + + + + +
+
+ + + + diff --git a/Codes/Codes-2/styles.css b/Codes/Codes-2/styles.css new file mode 100755 index 0000000..d29668c --- /dev/null +++ b/Codes/Codes-2/styles.css @@ -0,0 +1,21 @@ +body { + font-family: Arial, sans-serif; + margin: 0; + padding: 0; +} + +.nav-menu { + background-color: #f2f2f2; + padding: 10px; + text-align: center; +} + +.nav-menu a:hover { + background-color: #333; + color: #fff; +} + +main { + padding: 20px; +} + diff --git a/Codes/Codes-3/employees.dtd b/Codes/Codes-3/employees.dtd new file mode 100755 index 0000000..6522724 --- /dev/null +++ b/Codes/Codes-3/employees.dtd @@ -0,0 +1,10 @@ + + + + + + + +]> + diff --git a/Codes/Codes-3/employees.xml b/Codes/Codes-3/employees.xml new file mode 100755 index 0000000..f1fc001 --- /dev/null +++ b/Codes/Codes-3/employees.xml @@ -0,0 +1,26 @@ + + + + + 1 + Kshitij K + DevOps Engineer + IT + 6000000 + + + 2 + Ayush Kalas + Project Manager + IT + 8000 + + + 3 + Ombase + Frontend Developer + IT + 500 + + + diff --git a/Codes/Codes-3/employees.xsd b/Codes/Codes-3/employees.xsd new file mode 100755 index 0000000..9c1935f --- /dev/null +++ b/Codes/Codes-3/employees.xsd @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/Codes/Codes-3/employees.xsl b/Codes/Codes-3/employees.xsl new file mode 100755 index 0000000..d30252c --- /dev/null +++ b/Codes/Codes-3/employees.xsl @@ -0,0 +1,46 @@ + + + + + + Employee List + + + +

Employee List

+ + + + + + + + + + + + + + + + + +
IDNamePositionDepartmentSalary
+ + +
+
+ diff --git a/Codes/Codes-3/index.html b/Codes/Codes-3/index.html new file mode 100755 index 0000000..a65f8e7 --- /dev/null +++ b/Codes/Codes-3/index.html @@ -0,0 +1,56 @@ + + + + + + Employee List + + + +

Employee List

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
IDNamePositionDepartmentSalary
1Kshitij KDevOps EngineerIT6000000
2Ayush KalasProject ManagerIT8000
3OmbaseFrontend DeveloperIT500
+ + + diff --git a/Codes/Codes-4/index.html b/Codes/Codes-4/index.html new file mode 100755 index 0000000..4dee583 --- /dev/null +++ b/Codes/Codes-4/index.html @@ -0,0 +1,37 @@ + + + + Calculator + + + +
+

Calculator

+

(Designed by Kshitij)

+
+ +
+
+ + + + + + + + + + + + + + + + + +
+
+ + + + diff --git a/Codes/Codes-4/script.js b/Codes/Codes-4/script.js new file mode 100755 index 0000000..b0fb957 --- /dev/null +++ b/Codes/Codes-4/script.js @@ -0,0 +1,31 @@ +let currentValue = ''; + +function addToDisplay(value) { + currentValue += value; + document.getElementById('result').value = currentValue; +} + +function clearDisplay() { + currentValue = ''; + document.getElementById('result').value = ''; +} + +function calculate(operator) { + if (operator === '=') { + try { + currentValue = eval(currentValue).toString(); + document.getElementById('result').value = currentValue; + } catch (error) { + alert('Invalid expression'); + clearDisplay(); + } + } else { + if (currentValue === '') { + alert('Please enter a number'); + return; + } + currentValue += operator; + document.getElementById('result').value = currentValue; + } +} + diff --git a/Codes/Codes-4/styles.css b/Codes/Codes-4/styles.css new file mode 100755 index 0000000..621cc28 --- /dev/null +++ b/Codes/Codes-4/styles.css @@ -0,0 +1,56 @@ +body { + font-family: Arial, sans-serif; + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + margin: 0; + background-color: #f0f0f0; +} + +.calculator { + background-color: #fff; + padding: 20px; + border-radius: 5px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); + text-align: center; +} + +.designer { + font-size: 14px; + color: #888; + margin-top: 5px; +} + +.display { + margin-bottom: 10px; +} + +.display input { + width: 100%; + font-size: 24px; + padding: 5px; + text-align: right; + border: 1px solid #ccc; + border-radius: 3px; +} + +.buttons { + display: grid; + grid-template-columns: repeat(4, 1fr); + grid-gap: 5px; +} + +.buttons button { + font-size: 18px; + padding: 10px; + background-color: #f0f0f0; + border: none; + border-radius: 3px; + cursor: pointer; +} + +.buttons button:hover { + background-color: #e0e0e0; +} + diff --git a/Codes/Codes-5/servlet screenshot-1.jpg b/Codes/Codes-5/servlet screenshot-1.jpg new file mode 100644 index 0000000..f1faa41 Binary files /dev/null and b/Codes/Codes-5/servlet screenshot-1.jpg differ diff --git a/Codes/Codes-5/servlet screenshot-2.jpg b/Codes/Codes-5/servlet screenshot-2.jpg new file mode 100644 index 0000000..2b12804 Binary files /dev/null and b/Codes/Codes-5/servlet screenshot-2.jpg differ diff --git a/Codes/Codes-6/jsp screenshot-1.jpg b/Codes/Codes-6/jsp screenshot-1.jpg new file mode 100644 index 0000000..aa4a5af Binary files /dev/null and b/Codes/Codes-6/jsp screenshot-1.jpg differ diff --git a/Codes/Codes-6/jsp screenshot-2.jpg b/Codes/Codes-6/jsp screenshot-2.jpg new file mode 100644 index 0000000..ba1c46f Binary files /dev/null and b/Codes/Codes-6/jsp screenshot-2.jpg differ diff --git a/Codes/Codes-7/dbconnect.php b/Codes/Codes-7/dbconnect.php new file mode 100755 index 0000000..e64bf06 --- /dev/null +++ b/Codes/Codes-7/dbconnect.php @@ -0,0 +1,89 @@ +connect_error) { + throw new Exception("Connection failed: " . $conn->connect_error); + } + echo "Connected successfully
"; + + // CRUD Operations + + // Create + function createUser($conn, $name, $email) { + $stmt = $conn->prepare("INSERT INTO users (name, email) VALUES (?, ?)"); + $stmt->bind_param("ss", $name, $email); + if ($stmt->execute()) { + echo "New user created successfully
"; + } else { + echo "Error: " . $stmt->error . "
"; + } + $stmt->close(); + } + + // Read + function readUsers($conn) { + $result = $conn->query("SELECT * FROM users"); + if ($result->num_rows > 0) { + while ($row = $result->fetch_assoc()) { + echo "ID: " . $row["id"] . " - Name: " . $row["name"] . " - Email: " . $row["email"] . "
"; + } + } else { + echo "No users found.
"; + } + } + + // Update + function updateUser($conn, $id, $name, $email) { + $stmt = $conn->prepare("UPDATE users SET name = ?, email = ? WHERE id = ?"); + $stmt->bind_param("ssi", $name, $email, $id); + if ($stmt->execute()) { + echo "User updated successfully
"; + } else { + echo "Error: " . $stmt->error . "
"; + } + $stmt->close(); + } + + // Delete + function deleteUser($conn, $id) { + $stmt = $conn->prepare("DELETE FROM users WHERE id = ?"); + $stmt->bind_param("i", $id); + if ($stmt->execute()) { + echo "User deleted successfully
"; + } else { + echo "Error: " . $stmt->error . "
"; + } + $stmt->close(); + } + + // Example usage of CRUD operations + createUser($conn, "John Doe", "john@example.com"); + createUser($conn, "Jane Smith", "jane@example.com"); + echo "
All Users:
"; + readUsers($conn); + updateUser($conn, 1, "John Updated", "john.updated@example.com"); // Update user with ID 1 + echo "
All Users after update:
"; + readUsers($conn); + deleteUser($conn, 2); // Delete user with ID 2 + echo "
All Users after deletion:
"; + readUsers($conn); + +} catch (Exception $e) { + echo "Error: " . $e->getMessage(); +} finally { + // Close the connection + if (isset($conn)) { + $conn->close(); + } +} +?> + diff --git a/Practical/Assignment-1/Softcopy-1.pdf b/Practical/Assignment-1/Softcopy-1.pdf new file mode 100644 index 0000000..d0bf13a Binary files /dev/null and b/Practical/Assignment-1/Softcopy-1.pdf differ diff --git a/Practical/Assignment-10/Softcopy-10.pdf b/Practical/Assignment-10/Softcopy-10.pdf new file mode 100644 index 0000000..8108228 Binary files /dev/null and b/Practical/Assignment-10/Softcopy-10.pdf differ diff --git a/Practical/Assignment-2/Softcopy-2 (DOC).docx b/Practical/Assignment-2/Softcopy-2 (DOC).docx new file mode 100755 index 0000000..347929b Binary files /dev/null and b/Practical/Assignment-2/Softcopy-2 (DOC).docx differ diff --git a/Practical/Assignment-2/Softcopy-2 (PDF).pdf b/Practical/Assignment-2/Softcopy-2 (PDF).pdf new file mode 100755 index 0000000..9f42bc3 Binary files /dev/null and b/Practical/Assignment-2/Softcopy-2 (PDF).pdf differ diff --git a/Practical/Assignment-3/Softcopy-3 (DOC).docx b/Practical/Assignment-3/Softcopy-3 (DOC).docx new file mode 100755 index 0000000..a2c3016 Binary files /dev/null and b/Practical/Assignment-3/Softcopy-3 (DOC).docx differ diff --git a/Practical/Assignment-3/Softcopy-3 (PDF).pdf b/Practical/Assignment-3/Softcopy-3 (PDF).pdf new file mode 100755 index 0000000..7ac224b Binary files /dev/null and b/Practical/Assignment-3/Softcopy-3 (PDF).pdf differ diff --git a/Practical/Assignment-4/Softcopy-4 (DOC).docx b/Practical/Assignment-4/Softcopy-4 (DOC).docx new file mode 100755 index 0000000..197c6b6 Binary files /dev/null and b/Practical/Assignment-4/Softcopy-4 (DOC).docx differ diff --git a/Practical/Assignment-4/Softcopy-4 (PDF).pdf b/Practical/Assignment-4/Softcopy-4 (PDF).pdf new file mode 100644 index 0000000..e95368c Binary files /dev/null and b/Practical/Assignment-4/Softcopy-4 (PDF).pdf differ diff --git a/Practical/Assignment-5/Softcopy-5 (DOC).docx b/Practical/Assignment-5/Softcopy-5 (DOC).docx new file mode 100755 index 0000000..e97b6c5 Binary files /dev/null and b/Practical/Assignment-5/Softcopy-5 (DOC).docx differ diff --git a/Practical/Assignment-5/Softcopy-5 (PDF).pdf b/Practical/Assignment-5/Softcopy-5 (PDF).pdf new file mode 100644 index 0000000..1cb3ee9 Binary files /dev/null and b/Practical/Assignment-5/Softcopy-5 (PDF).pdf differ diff --git a/Practical/Assignment-6/Softcopy-6 (DOC).docx b/Practical/Assignment-6/Softcopy-6 (DOC).docx new file mode 100755 index 0000000..30fe602 Binary files /dev/null and b/Practical/Assignment-6/Softcopy-6 (DOC).docx differ diff --git a/Practical/Assignment-6/Softcopy-6 (PDF).pdf b/Practical/Assignment-6/Softcopy-6 (PDF).pdf new file mode 100644 index 0000000..af8dd40 Binary files /dev/null and b/Practical/Assignment-6/Softcopy-6 (PDF).pdf differ diff --git a/Practical/Assignment-7/Softcopy-7 (DOC).docx b/Practical/Assignment-7/Softcopy-7 (DOC).docx new file mode 100755 index 0000000..f877210 Binary files /dev/null and b/Practical/Assignment-7/Softcopy-7 (DOC).docx differ diff --git a/Practical/Assignment-7/Softcopy-7 (PDF).pdf b/Practical/Assignment-7/Softcopy-7 (PDF).pdf new file mode 100755 index 0000000..e02c17e Binary files /dev/null and b/Practical/Assignment-7/Softcopy-7 (PDF).pdf differ diff --git a/Practical/Assignment-8/Softcopy-8.pdf b/Practical/Assignment-8/Softcopy-8.pdf new file mode 100644 index 0000000..9111627 Binary files /dev/null and b/Practical/Assignment-8/Softcopy-8.pdf differ diff --git a/Practical/Assignment-9/Softcopy-9.pdf b/Practical/Assignment-9/Softcopy-9.pdf new file mode 100644 index 0000000..dbafe45 Binary files /dev/null and b/Practical/Assignment-9/Softcopy-9.pdf differ diff --git a/Practical/WT - All Codes+Outputs.pdf b/Practical/WT - All Codes+Outputs.pdf new file mode 100644 index 0000000..1a248e7 Binary files /dev/null and b/Practical/WT - All Codes+Outputs.pdf differ