gpt-3.5-turbo-0301· OpenAI
WildChat-4.8M (AI2)
من هذا الكود <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible"…
- User
من هذا الكود
<meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Suppliers</title> <!-- Tell the browser to be responsive to screen width --> <meta name="viewport" content="width=device-width, initial-scale=1"> <script src="plugins/jquery.min/jquery.min.js"></script> <!--Preloader--> <link rel="stylesheet" href="dist/css/preloader.css"> <script src="dist/js/preloader.js"></script> <!-- Font Awesome --> <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css"> <!-- Ionicons --> <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css"> <!-- DataTables --> <link rel="stylesheet" href="plugins/datatables-bs4/css/dataTables.bootstrap4.min.css"> <link rel="stylesheet" href="plugins/datatables-responsive/css/responsive.bootstrap4.min.css"> <!--For data export and print button css--> <link rel="stylesheet" href="dist/css/buttons.dataTables.min.css"> <!-- Theme style --> <link rel="stylesheet" href="dist/css/adminlte.min.css"> <!-- Google Font: Source Sans Pro --> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet"><!-- Content Wrapper. Contains page content --> <div class="content-wrapper"> <!-- Content Header (Page header) --> <section class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6"> </div> </div> </div><!-- /.container-fluid --> </section> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12"> <!-- /.card --> <div class="card"> <div class="card-header"> <button type="button" onclick="location.href = 'add_suppliers.php';" class="btn btn-primary float-right"> <i class='fas fa-plus-circle'></i> Add Suppliers </button> <h3 class="card-title">All suppliers information</h3> </div> <!-- /.card-header --> <div class="card-body"> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th>#</th> <th>Suppliers Name</th> <th>Suppliers Contact Person</th> <th>Suppliers Email</th> <th>Suppliers Phone</th> <th>Suppliers Address</th> <th>Shop Name</th> <?php $user_type = $_SESSION['user_type']; if ($user_type == 'admin') { ?> <th>Action</th> <?php } ?> </tr> </thead> <tbody> <?php include ('my_function.php'); $sql = "SELECT * FROM suppliers WHERE owner_id='$owner_id' ORDER BY suppliers_id DESC"; $result = mysqli_query($con, $sql); $i = 1; while ($row = mysqli_fetch_array($result)) { echo "<tr>"; echo "<td>" . $i . "</td>"; echo "<td>" . $row['suppliers_name'] . "</td>"; echo "<td>" . $row['suppliers_contact_person'] . "</td>"; echo "<td>" . $row['suppliers_email'] . "</td>"; echo "<td>" . $row['suppliers_cell'] . "</td>"; echo "<td>" . $row['suppliers_address'] . "</td>"; echo "<td>" . shopNameById($row['shop_id']). "</td>"; if ($user_type == 'admin') { echo "<td><a class='btn btn-primary' href=\"edit_supplier.php?id=" . $row['suppliers_id'] . "\" ><i class='fas fa-edit'></i></a> "; echo "<a class='confirmation btn btn-danger' href=\"delete_supplier.php?id=" . $row['suppliers_id'] . "\" ><i class='fas fa-trash'></i></a></td>"; } $i++; echo "</tr> "; } echo " </tbody>"; echo " </table>"; ?> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> </div> <!-- Control Sidebar --> <aside class="control-sidebar control-sidebar-dark"> <!-- Control sidebar content goes here --> </aside> <!-- /.control-sidebar --> - Assistant
لا يمكنني تحديد المتغيرات لإضافة الترجمة واستخدامها في الملفات الأخرى دون معلومات إضافية عن نظامك وملف الترجمة الذي تستخدمه. عمومًا، لإضافة الترجمة، يمكنك استخدام ملف الترجمة الموجود في مكان معين في نظامك، ثم استدعائها في الصفحات باستخدام الدالة المناسبة في اللغة البرمجية التي تستخدمها. يجب عليك تحديد المتغيرات المستخدمة في الملف الذي ترغب في ترجمته واستخدامها داخل الملف الترجمة. يمكنك التحقق من الوثائق الرسمية للغة البرمجة أو الإطار الذي تستخدمه للحصول على مزيد من المعلومات حول الطريقة المناسبة لإدراج واستدعاء الترجمة.